为什么叫“监视器”?

发布于 2024-07-14 04:17:56 字数 488 浏览 4 评论 0原文

我指的是此处描述的监视器:

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

这里的定义似乎都不合适:

http://www.thefreedictionary.com /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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

你爱我像她 2024-07-21 04:17:56

根据 P. Brinch Hansen 在监视器和并发 Pascal:个人历史中的说法,这个名字起源于 60 年代和 70 年代初操作系统的原始术语:

在 20 世纪 60 年代,操作系统的驻留部分通常被称为
监视器。 RC 4000多道程序设计系统的内核被称为
监视器并被定义为“可以执行一系列操作的程序”
指令作为一个不可分割的实体”(Brinch Hansen 1969)。

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

你的他你的她 2024-07-21 04:17:56

生产者消费者问题为例。 如果不使用监视器,您必须通过编写繁忙循环来不断检查队列是否 1) 已满以及 2) 是否为空。 实际上,监视器通过原子地传输控制来监视状态。

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.

好久不见√ 2024-07-21 04:17:56

我认为定义 3a(来自字典)接近

3a。 通常用于记录、调节或控制过程或系统的电子设备

I think that definition 3a (from the dictionary) comes close

3a. A usually electronic device used to record, regulate, or control a process or system

‘画卷フ 2024-07-21 04:17:56

我认为监视器监视(并控制)对资源的访问。

The Free Dictionary 中关于 Monitor 的定义:

名词的定义 3A 和 4 或多或少适用(监视器不是程序而是程序组件)。

“动词、及物”部分的定义 1、2、5 也可以说是适用的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文