In place all functionalities uses by your program in c is equivalent to there in java. and For fork you can use multithreading