how to stop preemption

Dear Friends,

I am building a simulator for a distributed system i.e. for multiple nodes, by forking for each node. Each node runs in a loop and does a big chunk of work i.e. runs through 50 - 60 functions written in different directories and files.
I want that when one of the node is running, the scheduler shall not pre-empt it till that node allows the scheduler.

In simple words, how a process on Linux system can block the scheduler to pre-empt it?

Thanks and regards,

Praveen

All the processes in the world wants to keep the processor for ever.
Topic archived. No new replies allowed.