Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #1743
| From | bob <bob@coolfone.comze.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: message pumps |
| Date | 2012-06-07 07:53 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <dab9f740-ebcd-4c8d-89fb-4d1beedd2c9a@googlegroups.com> (permalink) |
| References | <4de64597-470f-4cb0-8857-e1f6d0734aeb@googlegroups.com> <0.5f2f2578cd88ccc57705.20120607113414BST.87ipf39zrt.fsf@bsb.me.uk> |
On Thursday, June 7, 2012 5:34:14 AM UTC-5, Ben Bacarisse wrote: > bob <bob@coolfone.comze.com> writes: > > > Why is it that they don't seem to teach message pumps in computer > > science classes? > > What's to teach? The other half of the world calls it an even loop (I > had to look it up), but even so it merits hardly more than a passing > remark. If you mean that students should learn about event-driven > programs, then I can see the point, but there are a very large number of > programming styles, and not all can be covered. > > -- > Ben. I'm guessing you mean "event loop." With event loops, there are many things that can go wrong that I have never seen analyzed: One thing is where the message pump thread performs a long-running operation and doesn't pull the next message off the queue for awhile. The OS often notices and accuses the program of not responding. Another potential issue is where events are generated more quickly than they are being processed.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar
message pumps bob <bob@coolfone.comze.com> - 2012-06-06 23:56 -0700
Re: message pumps "BartC" <bc@freeuk.com> - 2012-06-07 11:12 +0100
Re: message pumps Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-07 11:34 +0100
Re: message pumps Rui Maciel <rui.maciel@gmail.com> - 2012-06-07 13:41 +0100
Re: message pumps bob <bob@coolfone.comze.com> - 2012-06-07 07:53 -0700
Re: message pumps "BartC" <bc@freeuk.com> - 2012-06-07 17:18 +0100
Re: message pumps Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-07 09:41 -0700
csiph-web