Page 1 of 1

using windows threads

PostPosted: 09 Sep 2006, 21:45
by Engin Üstün
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.

Re: using windows threads

PostPosted: 10 Sep 2006, 00:20
by Pradu
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

Re: using windows threads

PostPosted: 10 Sep 2006, 00:30
by Engin Üstün
thx :)

but i must learn before what the functions are making and how he works.

Re: using windows threads

PostPosted: 17 Sep 2006, 00:08
by Engin Üstün
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....