Can someone clarify what a 'slow event' is.

This is a discussion on Can someone clarify what a 'slow event' is. within the Networking/Device Communication forums, part of the General Programming Boards category; 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 ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,337
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 02: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, 09:39 PM
  4. Replies: 2
    Last Post: 09-22-2003, 01:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21