Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the name "monitor"?

I'm referring to monitors as described here:

http://en.wikipedia.org/wiki/Monitor_(synchronization)

None of the definitions here seem apropos:

http://www.thefreedictionary.com/monitor

So why are they called that?

== Update ==

Thank you for the answers, everyone!

I guess I was confused because I don't think of monitors usually as acting on themselves, which is what seems to be happening here. For example, you use a baby monitor to monitor a baby. I just don't think it would make much sense for a baby to monitor itself, but I could be wrong.

like image 539
allyourcode Avatar asked Jan 27 '26 22:01

allyourcode


2 Answers

According to P. Brinch Hansen in Monitors and Concurrent Pascal: A personal history, the name originated from the original term for an operating system in the 60's and early 70's:

In the 1960s the resident part of an operating system was often known as a monitor. The kernel of the RC 4000 multiprogramming system was called the monitor and was defined as a program that "can execute a sequence of instructions as an indivisible entity" (Brinch Hansen 1969).

like image 127
greyfade Avatar answered Jan 29 '26 13:01

greyfade


Take producer consumer problem for example. Without using a monitor, you'd have to constantly check whether the queue is 1) full or not and 2) empty or not by writing busy loop. In effect, the monitor monitors the state for you by transferring the control atomically.

like image 32
Eugene Yokota Avatar answered Jan 29 '26 12:01

Eugene Yokota



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!