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

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!microsoft!hexnut!johnhall
  3. From: johnhall@microsoft.com (John Hall)
  4. Subject: Re: multiple threads per window?
  5. Message-ID: <1992Sep13.012441.5140@microsoft.com>
  6. Date: 13 Sep 92 01:24:41 GMT
  7. Organization: Microsoft Corporation
  8. Lines: 18
  9.  
  10. In article bagwill@swe.ncsl.nist.gov (Bob &) writes:
  11. | Then let me ask another question...
  12. | If I wanted to write an application which used multiple threads
  13. | to draw a fractal in a window, which mechanisms should I use to
  14. | avoid screwing up the drawing?
  15.  
  16. That depends.  If they are drawing on different portions of the
  17. screen (each thread takes a 1/4 slice of the window) then you
  18. need do nothing.  If the drawing is order dependent to the
  19. same pixel locations then take your pick:
  20.    semaphores, mutex's, critical sections, event's
  21.  
  22. I don't think pipes, RPC's and shared memory apply.
  23.  
  24.  
  25. -- 
  26. -------------------------
  27. My comments are my own.  They are independent and unrelated to the
  28. views of my company , relatives or elected representatives.
  29.  
  30.