home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4206 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!swrinde!sdd.hp.com!hplabs!ucbvax!PKSMRVM.VNET.IBM.COM!KENKAHN
  2. From: KENKAHN@PKSMRVM.VNET.IBM.COM ("Kenneth A. Kahn")
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Threads et all
  5. Message-ID: <9208131933.AA14154@ucbvax.Berkeley.EDU>
  6. Date: 13 Aug 92 19:27:21 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Lines: 22
  9.  
  10. Organization: Staff of IBM Fellow - NetWork Computing
  11. Disclaimer: This posting represents the poster's views, not those of IBM
  12. News-Software: UReply 3.0
  13. X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)
  14. References: <1992Aug13.190952.21123@elroy.jpl.nasa.gov>
  15.  
  16. In <1992Aug13.190952.21123@elroy.jpl.nasa.gov> Les Hartzman writes:
  17. >
  18. >        1)  Does thread 1 exist for any other reason than to start
  19. >            other threads and to process the interrupt/kill signals?
  20. >
  21. Depends on what you want to do.  I have a number of programs where Thread 1
  22. contains most of the processing for the process; e.g. it might contain a
  23. DosReadQueue to ccept work that other threads actually perform.  It's very
  24. common to have thread 1 act as the 'controler' thread and have it assign
  25. work to other threads as necessary.  Then again, I have a few applications
  26. where thread 1 does it's thing and then goes away.
  27. >
  28. >        2)  Can ANY thread in a process create its own queue(s)?
  29. >
  30. Any thread can create a Queue but any other thread in the process can access
  31. it via the QueueHandle.
  32.