Can anyone please explain to me the detials of what the fork command does??

Like wat is the Pid of the parent for a child created using this command.. again also it is said that it creates a replica of the currently running process what does this exactly mean??

Do reply Thank You...

Recommended Answers

All 4 Replies

The Fork Command has been extensively discussed before in this forum, Please search for that post.

If you are looking for a portable C++ program, use ACE and the ACE_Process::spawn(...) with ACE_Process_Options would be great.

In Unix, you use fork. In Windows you may use CreateProcess so by using ACE you standardize to only one call and that is ACE_Process::spawn(...)

ACE concept is like Java JVM to ensure portability. Worth a second look IMO.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.