Hello,

can a context belong to more than one process? When a process creates another with fork does the new process have a complete new context?

Thanks.

>> can a context belong to more than one process?
Why would you want it to? The context of a process is it's state at any given time. If two processes shared the same context then they would effectively be duplicates. That's not as useful as it may sound at first because the overhead of sharing context doesn't really buy you anything compared to creating new context for a new process, and there are only a small number of times where sharing the state of a process would be useful.

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.