Re: Winsock blocking hook problems.
Date: 1996/02/13
Message-ID: <4fqufo$ak_at_lard.ftp.com>#1/1
In article <4fpegb$a5k_at_show.rop2.hitachi-cable.co.jp>,
seto_at_rop2.hitachi-cable.co.jp (SETO Koichiro) wrote:
>In article <4fgmm9$h59_at_kane.ico.net>, db_at_stardust.com says...
>>never, Never, NEVER use a blocking hook in a win32 app. It's totally
>>unnecessary, since win32 is preemptively scheduled.
>
>Why not?
>Do you mean that we should not use blocking hook in a pre-emptive OS like
>Win95?
>If the OS is pre-emptive, I thought blocking will not be a problem because
>the task is scheduled non-blockingly by the OS anyway. Tell me where my
>understanding is wrong.
>
>Thanks in advance.
>
>Seto
>seto_at_rop2.hitachi-cable.co.jp
The point to remember is this: in Win16 Winsock, blocking calls are "fake" *due* to the DefaultBlockingHook(). Since the OS can't preempt the blocking operation, the blocking hook is running in the background to allow for message dispatch. So what you really have is "psuedo-blocking" and all the joyful reentrancy issues that go along with it.
--rich Received on Tue Feb 13 1996 - 00:00:00 CET