home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!microsoft!hexnut!johnhall
- From: johnhall@microsoft.com (John Hall)
- Subject: Re: multiple threads per window?
- Message-ID: <1992Sep13.012441.5140@microsoft.com>
- Date: 13 Sep 92 01:24:41 GMT
- Organization: Microsoft Corporation
- Lines: 18
-
- In article bagwill@swe.ncsl.nist.gov (Bob &) writes:
- | Then let me ask another question...
- |
- | If I wanted to write an application which used multiple threads
- | to draw a fractal in a window, which mechanisms should I use to
- | avoid screwing up the drawing?
-
- 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
-
- I don't think pipes, RPC's and shared memory apply.
-
-
- --
- -------------------------
- My comments are my own. They are independent and unrelated to the
- views of my company , relatives or elected representatives.
-
-