Thanx for the reply! PhiLho
in ma case i just wanna run that part of the prog once at background(as it's a "Blocking call"!)...
I'v done som thiing like this..
int d = 1;
thread("abc") //this calls the fn as a thread
abc(){
if(d == 1){
//my prog which is to be run at a bacckground
}
d ==0;
}//end abc
By doin so, even tho thread runs - it's empty
Is this alright??
Mike