views:

271

answers:

3

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.

+2  A: 

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.

eed3si9n
+5  A: 

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).

greyfade
I liked all the answers, but I accepted this one because of the reference. I would have especially appreciated this link: http://brinch-hansen.net/papers/1993a.pdf
allyourcode
@greyfade: you got the bonus for the best answer because you gave the best answer!
Jonathan Leffler
+2  A: 

I think a monitor monitors (and controls) access to a resource.

Of the definitions at The Free Dictionary for Monitor:

Definitions 3A and 4 for noun apply, more or less (a monitor is not a program but a program component).

Definitions 1, 2, 5 from the 'verb, transitive' section could also be said to apply.

Jonathan Leffler