Can anyone share a piece of sample code for creating a process which inturns create a thread ?
Printable View
Can anyone share a piece of sample code for creating a process which inturns create a thread ?
Well that rather depends on which OS and compiler you're using.
Standard C++ has no such notions.
Not yet, anyway.
Code:boost::thread t(threadproc);
Assuming windows: http://www.adrianxw.dk/SoftwareSite/index.html Look at the bottom of the page. There are three tutorials. They're very straightforward to follow, but also, as far as I know, very basic.
EDIT: Just read the title of your post. Not sure if this is what you're looking for.
Haha. My post count says I'm leet