home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!hp9000.csc.cuhk.hk!cucs5.cs.cuhk.hk!wmchung
- From: wmchung@eng.ie.cuhk.hk (chung wai man)
- Subject: Async IO problem
- Message-ID: <1992Sep5.113616.18458@cucs5.cs.cuhk.hk>
- Sender: news@cucs5.cs.cuhk.hk
- Organization: Faculty of Engineering, The Chinese U. of Hong Kong
- Date: Sat, 5 Sep 1992 11:36:16 GMT
- Lines: 30
-
- Hi!
-
- I have some problem about Async IO. In the Unix Network Programming
- by Stevens, on P.327, it has an example program telling how to make
- async IO. It has the codes:
-
- sigblock(sigmask((SIGIO));
- while(sigflag == 0)
- sigpause(0);eee(0)
-
- I wonder if these codes are necessary for Async IO. These codes seems that
- the program will halt and wait for a signal. If it is so, it is just a
- blocking socket waiting for something to receive.
-
- My concept for Async IO is that it is like a software interrupt. The
- program can go along. When something has received, it will be interrupted
- , doing a routine already registered for signal SIGIO, then
- resuming.
-
- I wonder if I am right. I hope that some experts can give comments to me.
- I am so perplexed on these issues. Moreover, I also want to know if the
- select() system call is blocking or not.
-
- Thanks!
-
- I appreciate if you can email to me directly:
- wmchung@eng.ie.cuhk.hk
-
- Best Regards,
- W.M. Chung
-