hey ppl i need some help...this might be easy 4 u gurus but i dont usually use java....B(
here is my prob, i need to do somefing like this( C ) but in java:
......
if(fork()==0){
//child process code
}else{
//father code
}
....
i visited some pages of sun explaining how to use threads but i didnt understand the usage very well...
this might look like a "u do it 4 me" situation but....how to assign a new thred to somefing...
Thread a= new Thread(this, "Clock");
by example this method
private static int randomName(String wtf){
.....
}
thanks 2 everybody dat triyes 2 help
here is my prob, i need to do somefing like this( C ) but in java:
......
if(fork()==0){
//child process code
}else{
//father code
}
....
i visited some pages of sun explaining how to use threads but i didnt understand the usage very well...
this might look like a "u do it 4 me" situation but....how to assign a new thred to somefing...
Thread a= new Thread(this, "Clock");
by example this method
private static int randomName(String wtf){
.....
}
thanks 2 everybody dat triyes 2 help