The Master-Slave Model

The Master-Slave Model

 
The Master-Slave Model

Master Slave Model is also known as Manager- worker model. The work is being divided among the process. In this model, there are two different types of processes namely master process and slave process.

 One or more process acts as a master and the remaining all other process acts as a slave. Master allocates the tasks to the slave processes according to the requirements. The allocation of tasks depends on the size of that task. If the size of the task can be calculated on a prior basis the master allocates it to the required processes.

If the size of the task cannot be calculated prior the master allocates some of the work to every process at different times. The master-slave model works more efficiently when work has to be done in different phases where the master assigns different slaves to perform tasks at different phases. In the master-slave model, the master is responsible for the allocation of tasks and synchronizing the activities of the slaves. The master-slave model is generally efficient and used for shared address space and message-passing paradigms.

Post a Comment

Previous Post Next Post