Can anyone share a piece of sample code for creating a process which inturns create a thread ?
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Not yet, anyway.
Code:boost::thread t(threadproc);
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
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
Last edited by twomers; 01-06-2007 at 08:02 AM.