using windows threads

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

using windows threads

Postby Engin Üstün » 09 Sep 2006, 21:45

Hi,
i search good pseudo codes examples how i can use threads on windows system.

- to create thread
- to stop thread
- to block read/write data for each thread

i have a AMD x2 dual core system and would like use both cpu for search.

is there on internet i good site to learn about threads, better if is in german language if possible, because my english is not so good :(

i found from google some pages but is not good or is not in german.
Engin Üstün
 
Posts: 15
Joined: 21 Jul 2005, 21:39
Location: Germany

Re: using windows threads

Postby Pradu » 10 Sep 2006, 00:20

I made a simple cross-platform threading header. I guess you can look at the Windows part to see how threading is done in Windows. I guess the best source to learn about this is MSDN.

http://www.prism.gatech.edu/~gtg365v/cutils/thread.h
Last edited by Pradu on 10 Sep 2006, 00:31, edited 1 time in total.
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: using windows threads

Postby Engin Üstün » 10 Sep 2006, 00:30

thx :)

but i must learn before what the functions are making and how he works.
Engin Üstün
 
Posts: 15
Joined: 21 Jul 2005, 21:39
Location: Germany

Re: using windows threads

Postby Engin Üstün » 17 Sep 2006, 00:08

Pradu wrote:I made a simple cross-platform threading header. I guess you can look at the Windows part to see how threading is done in Windows. I guess the best source to learn about this is MSDN.

http://www.prism.gatech.edu/~gtg365v/cutils/thread.h


your example don't work for me :(

i tryed other experiments and seems working now, i get on taskmanager with 2 threads over 100% speed of cpus :).

but i can't not handle about the variables what happen to do with this, if is not crash my program.

i will try critical senctions....
Engin Üstün
 
Posts: 15
Joined: 21 Jul 2005, 21:39
Location: Germany


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 30 guests