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