
词语导航
基本信息
词语:互斥队列
繁体:互斥隊列
拼音:hù chì duì liè
英语翻译
【计】 mutual exclusion queue
分词翻译
互斥的英语翻译:
【计】 mutual exclusive
队列的英语翻译:
alignment
【计】 Q; queue; queueing
翻译例句
1. 第一个读线程锁住互斥锁,发现队列是空的,然后在 _cond 上阻塞自身,这会隐式地释放互斥锁。
The first reader thread locked the mutex, realized that the queue is empty, and blocked itself on _cond, which implicitly released the mutex.
2. 第一个线程锁住互斥并把数据添加到队列中,而其他线程等待轮到它们操作。
The first thread locks the mutex and appends data to the queue, while the other threads wait for their turn.
3. 显然,把数据放到队列中就像是把数据添加到列表中,必须使用互斥锁保护这个操作。
Clearly, pushing data into the queue is akin to appending data to the list, and this operation must be guarded by mutex locks.
4. 多个控制线程可以同时在队列中添加数据或删除数据,所以需要用互斥锁对象管理同步。
Multiple threads of control can simultaneously try to push data to the queue or remove data, so you need a mutex object to manage the synchronization.
5. 队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。WwW.WEnTIyI.coM
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
6. 例如,如果两个或多个进程正在等待互斥访问某一要释放的资源,仅唤醒等待队列中一个进程才有意义。
For instance, if two or more processes are waiting for exclusive access to some resource to be released, it makes sense to wake up just one process in the wait queue.
7. 例如,如果两个或多个进程正在等待互斥访问某一要释放的资源,仅唤醒等待队列中一个进程才有意义。
For instance, if two or more processes are waiting for exclusive access to some resource to be released, it makes sense to wake up just one process in the wait queue.
版权声明:问题易所有作品(图文、音视频)均来源网络,版权归原创作者所有,与本站立场无关,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理!
