home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0020.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.8 KB  |  44 lines

  1. Submitted-by: peter@ferranti.com (peter da silva)
  2.  
  3. In article <1992Feb26.225630.1375@uunet.uu.net> henry@zoo.toronto.edu (Henry Spencer) writes:
  4. > The point is, the user gets access to the functionality by using threads.
  5.  
  6. Well, ignoring quality of implementation issues... yes.
  7.  
  8. > There is no gain to him in having another interface documented, especially
  9. > if it is one that might or might not be present, and especially if -- as
  10. > with non-blocking syscalls -- it leads to messier and buggier code
  11. > than the interface that is already provided.
  12.  
  13. Well, actually, there is... if he's working in an environment that does not
  14. readily lead itself to coding his program in terms of threads. For example,
  15. if he's using an X toolkit or other non-reentrant library. In this case your
  16. threads program is going to have to end up having one master thread that does
  17. all the I/O, and a bunch of little threads running around it that emulate a
  18. non-blocking syscall interface.
  19.  
  20. I understand your opinion of X, and I agree with it, but unfortunately it's
  21. a reality, and its requirement that user application programs provide
  22. reasonably good realtime response makes it a likely place to be doing
  23. this sort of thing.
  24.  
  25. Also, a properly designed threads interface (I don't know if the 1003.4 one
  26. is in a "properly designed" state or not this week) doesn't expose details
  27. like whether the threads are managed in user mode or at the kernel level.
  28.  
  29. > (Every non-blocking-calls
  30. > program I've ever seen has had a threads program inside, screaming to
  31. > get out.)
  32.  
  33. How many have you seen? I've seen a lot, and some are simply written under
  34. constraints that make threads unattractive in the extreme.
  35.  
  36. -- 
  37. -- Peter da Silva,  Ferranti International Controls Corporation
  38. -- Sugar Land, TX  77487-5012;  +1 713 274 5180
  39. -- "Have you hugged your wolf today?"
  40.  
  41.  
  42. Volume-Number: Volume 27, Number 21
  43.  
  44.