Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why critical section cannot be used across process?

Thanks in advance
Posted

Because a critican section is only a critical section in the process in which it is defined.
 
Share this answer
 
Critical sections are thread specific: you don't need critical section across process boundaries.
 
Share this answer
 
Because Mutex can be used for that. They are less efficiency but can works across process.

Also, since the address space of 2 processes are different, a name is required to find the object in the other process and critical section are not named.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900