• Advertisement

Archived

This topic is now archived and is closed to further replies.

Multitasking in Win32

This topic is 5907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

HI all, I''m working with multitasking for some time, but what i have is really basic, just create and trash the thread, so, whre can I find more info on multithreading? Thanx all, Hugo Ferreira UniteK Future "Concentrate, and you can see it. If you see it, then it is possible. If it is possible, you can Achieve it."

Share this post


Link to post
Share on other sites
Advertisement
It is not an easy topic. (Yoda tone : Oh, yesss, you WILL have deadlocks. )

"Multithreading in Win32" ed. O''Reilly & Associates
http://www.oreilly.com/catalog/multithread/

"Pthreads Programming" ed. O''Reilly & Associates
http://www.oreilly.com/catalog/pthread/
Describes the use of the POSIX thread library

"Multithreaded programming in C++" ed. Springer-Verlag
http://www.springer.de/cgi-bin/search_book.pl?isbn=1-85233-146-1
Describes and implement a whole c++ multithreading library, based on win32 threads or pthreads.

Online: google search

As to how it relates to OpenGL... I am near-certain that OpenGL is not thread-safe : for performance reasons, you want to send data as fast as possible to the graphics hardware, so you don''t want to pay for synchronization every time when you have a single thread of execution. Therefore, you definitely don''t want to call GL routines from several threads simultaneously. Which calls for mutexes.

Share this post


Link to post
Share on other sites
"Programming Applications for Windows" by Jeffrey Richter (Microsoft Press).

It''s an excellent book which goes into detail about how the thread and process synchronisation of Windows actually works as well as details on many other topics (the memory manager, DLLs etc). Older editions used to be called "Advanced Windows"

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • Advertisement