Question about process freezing
Hi,
I have a simple/dumb question about process freezing.
Instead of freezing every single user land processes by sending them a fake signal and waiting for them to go to the refrigerator, why not freezing the scheduler ?
Thanks,
Franck
Quoted 7 lines · Franck Bui-Huu
Hi,
I have a simple/dumb question about process freezing.
Instead of freezing every single user land processes by sending them a fake signal and waiting for them to go to the refrigerator, why not freezing the scheduler ?
Because processes can't simply be frozen immediately. They need to have a chance to release any important locks or mutexes they may be holding.
Alan Stern
Quoted 9 lines · Alan Stern
Quoted 3 lines · Franck Bui-Huu
Instead of freezing every single user land processes by sending them a fake signal and waiting for them to go to the refrigerator, why not freezing the scheduler ?
Because processes can't simply be frozen immediately. They need to have a chance to release any important locks or mutexes they may be holding.
You mean any locks held by a frozen process and needed by the suspend code path ?
thanks,
Franck
Quoted 6 lines · Franck Bui-Huu
Quoted 5 lines · Alan Stern
Quoted 3 lines · Franck Bui-Huu
Instead of freezing every single user land processes by sending them a fake signal and waiting for them to go to the refrigerator, why not freezing the scheduler ?
Quoted 7 lines
Quoted 4 lines
Because processes can't simply be frozen immediately. They need to have a chance to release any important locks or mutexes they may be holding.
You mean any locks held by a frozen process and needed by the suspend code path ?
Yes.
Regards,
Rafael