Master vs. Slave

Difference Between Master and Slave

Master/Slave is a communication model in which a device or a procedure designated as a Master possesses control of other device/devices or processes called the slave/slaves. Basically, a master is a device or a process that controls other devices or processes and a slave is a device or a process that is restricted by another device or a process.Master/slave modelbasedcommunications occur in many places. Some of them being in database replications, devices associated to a bus in a computer, etc.

What is Master?

Basically, a master is a device or a process that controls other devices or processes. The control direction flows from master to slave. In database replication, (copying data between databases maintains consistency), the master database is measured as the party with all the authority. The master database records all the updates to the data and other databases are synchronized with the master. The term master is also used in hard drive arrangements using PATA (Parallel Advanced Technology Attachment). But in this situation, master is just used as another name for the device 0 and the master (device 0) in this condition does not have any control over the device named as the slave. But the device chosen as the master appears first to the BIOS or the operating system. Designating amaster hard drive is characteristically done by having an exact jumper setting.

What is Slave?

Slave is a device or a process that is controlled by another device or a procedure (called the master). For example, in database replication, the database measured as the slave will use the updates recorded in the master database to harmonize its data with the master. On receiving updates from the master effectively, the slave informs the master by outputting a message. This would allow master to send more updates to the slave. Besides, in PATA hard drive, slave is a synonym for device 1. But in this circumstance the master (device 0) does not have any control over the device designated as the slave. But when SATA (Serial Advanced Technology Attachment) replaced the traditional PATA drives, designating hard drives as master and slave was not used any more.

What is the difference between Master and Slave?

In the master/slave communication replica, master is a device or a process that controls over other devices or processes, while a slave is prohibited by another device (called the master). In database replication, master database records all the updates in the data and sends them to the databases designated as the slaves. The slaves can only inform the master whether they received the updates productively and they have no control to stop the updates coming to them. But, there is a difference in the usage of master/slave in PATA hard drive provision. Now, the device chosen as the master has no control over the device designated as the slave.

 

Category: VS  |  Tags: