home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 917 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!dialogic!gerry
  3. From: gerry@pizzabox.dialogic.com (Gerry Lachac)
  4. Subject: Threads are Not Processes (was Re: Process Security in NT)
  5. Message-ID: <1992Sep11.145735.17150@dialogic.com>
  6. Sender: news@dialogic.com (Netnews)
  7. Organization: Dialogic Corporation
  8. References: <sxjcb-100992122022@sxjcb.uacn.alaska.edu>
  9. Date: Fri, 11 Sep 92 14:57:35 GMT
  10. Lines: 20
  11.  
  12. In article <sxjcb-100992122022@sxjcb.uacn.alaska.edu> sxjcb@orca.alaska.edu (Jay C. Beavers) writes:
  13. >
  14. >Are daemon and process bad words for NT that have been replaced with more
  15. >'MC (Microsoft Correct)' jargon?  Threads means processes, but how about
  16. >daemon?  Background thread?
  17.  
  18. Threads are *NOT* processes!  Processes can be thought of as data
  19. ownership, and a thread as a stream of control.  A process can have
  20. one thread (the standard Unix model) or many threads (the NT/OS2/Unix
  21. with Light-weight Process model).
  22.  
  23. A process can "own" memory, file handles, pipes, etc.  Every thread in
  24. a process can access any of this data.  The only data a thread has is
  25. its stack.
  26.  
  27. Many beginning Unix-background OS2/NT programmers mistakenly make
  28. this thread==process assumption, since the concepts of data ownership
  29. and streams of control are not separated in the traditional Unix model.
  30.  
  31.  
  32.