home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3638 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!cunews!hobbit.gandalf.ca!mbeizer
  3. From: mbeizer@gandalf.ca (Martin Beizer)
  4. Subject: Lightweight Processes
  5. Message-ID: <1992Aug17.141847.24603@gandalf.ca>
  6. Keywords: lightweight processes
  7. Organization: Gandalf Data Ltd.
  8. Distribution: na
  9. Date: Mon, 17 Aug 1992 14:18:47 GMT
  10. Lines: 23
  11.  
  12. I have gotten some email responses to my posting about lightweight
  13. processes which indicate additional detail would be appropriate.
  14.  
  15. I am using gcc 2.2.1, with the `-g' flag, linking with `-lnbio'
  16. and `-llwp' and Sun's, not the gnu, libc.a. Turning off the `-g' flag
  17. has no effect.  Teeing output to a file does not help: the
  18. program still behaves as it does with stdout going only to the screen.
  19.  
  20. I have had the program dump lightweight process thread information,
  21. and have found none of the explicitly created threads blocked on
  22. another thread, monitor, etc.
  23.  
  24. Using `setvbuf' to cause stdout to become unbuffered makes the program
  25. "lock up" sooner, while using a large block buffer delays the onset of
  26. only one thread running.  In this case, the time at which only one
  27. thread begins to run appears to be correlated with the buffer being
  28. output.
  29.  
  30. Any ideas would be appreciated!
  31. ----------------------------------------------------------------------
  32. Martin Beizer                  Gandalf Systems, Cherry Hill, NJ
  33. (609) 424-8700 X 5820            mbeizer@gandalf.ca, beizer@infotron.com
  34.  
  35.