home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 954 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.1 KB

  1. Path: sparky!uunet!congrunt!jbs
  2. From: jbs@Congruent.COM (Jeffrey Siegal)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Re: multiple threads per window?
  5. Message-ID: <JBS.92Sep14133700@sun1.Congruent.COM>
  6. Date: 14 Sep 92 17:37:00 GMT
  7. References: <1992Sep13.012441.5140@microsoft.com>
  8. Sender: news@Congruent.COM
  9. Organization: Congruent Corporation; New York, NY
  10. Lines: 14
  11. In-reply-to: johnhall@microsoft.com's message of 13 Sep 92 01:24:41 GMT
  12.  
  13. In article <1992Sep13.012441.5140@microsoft.com> johnhall@microsoft.com (John Hall) writes:
  14.  
  15.    That depends.  If they are drawing on different portions of the
  16.    screen (each thread takes a 1/4 slice of the window) then you
  17.    need do nothing.  If the drawing is order dependent to the
  18.    same pixel locations then take your pick:
  19.       semaphores, mutex's, critical sections, event's
  20.  
  21. However, you should be aware that GDI drivers (i.e. display drivers)
  22. are single threaded, so even if you are drawing to different parts of
  23. the screen, only one actual drawing primitive will be executing at a
  24. time.  The rest will block.
  25.  
  26. Jeffrey Siegal
  27.