Can anyone share a piece of sample code for creating a process which inturns create a thread ?