网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 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.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/20 9:15:36