Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1743

Re: message pumps

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From bob <bob@coolfone.comze.com>
Newsgroups comp.programming
Subject Re: message pumps
Date Thu, 7 Jun 2012 07:53:27 -0700 (PDT)
Organization http://groups.google.com
Lines 22
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>
NNTP-Posting-Host 71.21.226.7
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1339081257 28739 127.0.0.1 (7 Jun 2012 15:00:57 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 7 Jun 2012 15:00:57 +0000 (UTC)
In-Reply-To <0.5f2f2578cd88ccc57705.20120607113414BST.87ipf39zrt.fsf@bsb.me.uk>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=71.21.226.7; posting-account=v1lx5wkAAAALWYfGBkwkMb2guPF9cW2u
User-Agent G2/1.0
X-Received-Bytes 2080
Xref csiph.com comp.programming:1743

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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