网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 Counting Semaphore
分类 英语词汇 英语翻译词典
释义

Counting Semaphore

中文百科

信号标 Semaphore (programming)

(重定向自Counting Semaphore)

信号标(英语:Semaphore)又称为号志旗语,它以一个整数变量,提供信号,以确保在并行计算环境中,不同行程在访问共享资源时,不会发生冲突。是一种不需要使用忙碌等待(busy waiting)的一种方法。

信号量的概念是由荷兰计算机科学家艾兹格·迪杰斯特拉(Edsger W. Dijkstra)发明的,广泛的应用于不同的操作系统中。在系统中,给予每一个行程一个信号量,代表每个行程目前的状态,未得到控制权的行程会在特定地方被强迫停下来,等待可以继续进行的信号到来。如果信号量是一个任意的整数,通常被称为计数信号量(Counting semaphore),或一般信号量(general semaphore);如果信号量只有二进位的0或1,称为二进位信号量(binary semaphore)。在linux系中,二进位信号量(binary semaphore)又称Mutex。

英语百科

Semaphore (programming) 信号标

(重定向自Counting Semaphore)
A semaphore (Dutch: seinpaal, the term used in Dijkstra's original description[1]).
Le sémaphore SEM, sa liste L et son compteur K, SEM est accessible aux opérations :

INIT(SEM, VAL) ;
P(SEM) ;
V(SEM).
Verlassenes Eisenbahnsignal (Semaphor)

In computer science, a semaphore is a variable or abstract data type that is used for controlling access, by multiple processes, to a common resource in a concurrent system such as a multiprogramming operating system.

A trivial semaphore is a plain variable that is changed (for example, incremented or decremented, or toggled) depending on programmer-defined conditions. The variable is then used as a condition to control access to some system resource.

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/7 18:23:28