1

I am using Visual studio in windows for developing C library. Can someone please provide me simple example of creating thread in windows console application and starting it. Thanks

Ali Ahmed
  • 1,649
  • 6
  • 19
  • 29

3 Answers3

2

These links may help you.

Creating Threads

Thread Functions

dsolimano
  • 8,600
  • 3
  • 47
  • 62
Thomas
  • 817
  • 1
  • 6
  • 7
0

For windows: Use _beginthread and _beginthreadex. CreateThread has problems with the CRT.

For unix: use pthread_create

chacham15
  • 13,146
  • 24
  • 95
  • 197
0

C++ and C doesn't have support for Threads. You have to use Win32 APIs for threading support for which you can google,BING.

Praveen
  • 332
  • 2
  • 9