Skip to contentSkip to conversation

Question about process freezing

DISCUSSION Franck Bui-Huu 3 participants 4 messages Nov 20, 2007 – Nov 21, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw
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

#3 lore raw
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