threads (java-style)

M

Martijn

Im writing a windows-based program that uses multiple threads. In java,
there exists a standard class Thread, but in c++ there is no such thing.
Could anyone tell me the easiest way to create a multiple threaded program
in windows?

Thanks
 
L

lallous

Martijn said:
Im writing a windows-based program that uses multiple threads. In java,
there exists a standard class Thread, but in c++ there is no such thing.
Could anyone tell me the easiest way to create a multiple threaded program
in windows?

Thanks

Hello

If you're using the win32 API you can use CreateThread() API
If using MFC there is a wrapper called CWinThread

Try asking in microsoft.public.win32.programmer.kernel
 
R

Razvan Popovici

Threads are not a C++ language standard but implemented non-uniformous in
platform API. Therefore native APIs for Winows/Novell/Linux/Mac... have a
different mechanism of handling threads. There are platforms that are not
supporting threads, like PalmOS is.
Maybe you will find a library that is able to facade the APIs of many
platform in an uniformous way. Without being experienced particularry in
threads I recomend you to take a look on xwWindows, c-plat, qt.

Regards,
Razvan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,435
Latest member
PhilipBelm

Latest Threads

Top