4
votes
3answers
65 views

Can I pipe any two processes to each other?

In this page from The Design and Implementation of the 4.4BSD Operating System, it is said that: A major difference between pipes and sockets is that pipes require a common parent process to set ...
0
votes
0answers
29 views

dynamic pool of process C [migrated]

I'm writing program in UNIX on C. I have to write client-server(TCP) program on sockets. Client sends some information and server answer. No matter what client sends or receives because I successfully ...
3
votes
3answers
264 views

How to track the number of processes and forks per user?

I need to figure out how many forks are done and how many concurrent processes are run by each user over time. It does not look like this information is tracked by my distribution. I know how to ...
0
votes
0answers
55 views

explain the program in advanceunix? [closed]

I understand the fork concept. I'm trying to solve the following problem. I have to write a program that forks. The parent process gets a valid Unix command from the user, and passes it to the child. ...
2
votes
2answers
380 views

How does copy-on-write in fork() handle multiple fork?

According to wikipedia (which could be wrong) When a fork() system call is issued, a copy of all the pages corresponding to the parent process is created, loaded into a separate memory location by ...
8
votes
1answer
2k views

What's the difference between fork() and vfork()?

I would like to understand in detail the difference between fork() and vfork(). I was not able to digest the man page completely. I would also like to clarify one of my colleagues comment "In ...