Thread: Can someone clarify what a 'slow event' is.

  1. #1
    Banned
    Join Date
    May 2007
    Location
    Berkeley, CA
    Posts
    329

    Can someone clarify what a 'slow event' is.

    The question stems from the following URL

    http://groups.google.com/group/comp....55f33bf5cb1889

    The author says that 'blocking', as applied to sockets, isn't the same thing as 'sleeping'. One of the difference he notes is that operation will not wait for slow events.

    What is a 'slow event' in this case?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Sleeping as far as I know just means the program has everything it needs except CPU time. That is, the OS has decided that something else needs to be done.

    Blocking means that the program is waiting for some external resource to become available (like a buffer being filled).

    A slow event just means things which might take milliseconds to complete (which is an age in processor time), so it's worth putting the process to sleep while something else gets done.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Banned
    Join Date
    May 2007
    Location
    Berkeley, CA
    Posts
    329
    Quote Originally Posted by Salem View Post
    Sleeping as far as I know just means the program has everything it needs except CPU time. That is, the OS has decided that something else needs to be done.

    Blocking means that the program is waiting for some external resource to become available (like a buffer being filled).

    A slow event just means things which might take milliseconds to complete (which is an age in processor time), so it's worth putting the process to sleep while something else gets done.
    Okay, those definitions make sense. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. Actors, cues, event based logic.
    By Shamino in forum Game Programming
    Replies: 2
    Last Post: 04-27-2006, 10:58 PM
  3. XWindows- Close window event?
    By Exile in forum Linux Programming
    Replies: 8
    Last Post: 01-09-2005, 10:39 PM
  4. Replies: 2
    Last Post: 09-22-2003, 01:47 PM