互斥调用用英语怎么说,互斥调用的英文翻译


词语导航

基本信息

词语:互斥调用

繁体:互斥調用

拼音:hù chì tiáo yòng

英语翻译

【计】 mutual exclusive call

分词翻译

互斥的英语翻译:

【计】 mutual exclusive

调用的英语翻译:

transfer
【计】 C; call; calls; invoke

翻译例句

1. 如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。

This call might fail if the calling thread does not own the mutex object.

2. 然而,如果互斥对象已锁定,这个调用也不会阻塞。

However, if the mutex is locked this call won"t block.www.WentiYI.coM

3. 这个调用在互斥锁可用时返回,否则,在互斥锁锁可用之前它将休眠。

This call returns if the mutex is available; otherwise, it sleeps until the mutex is available.

4. 如果调用线程并不拥有这个互斥信号量,那么这个函数的执行将会失败。

If the calling thread has no ownership of this mutex, this function fails.

5. 无论在哪种情形中,当控制被返回时,调用者将持有互斥锁。

In either case, when control is returned, the caller holds the mutex.

6. 当线程正在做其它事情的时候(由于互斥对象当前是锁定的),如果希望锁定互斥对象,这个调用就相当方便。

This call is handy when you want to lock a mutex while your thread is doing something else (because the mutex is currently locked).

7. 如果您将调用pthread_create前面改变threadcount值的代码去掉,那么互斥量代码中间就只剩下减小计数值的语句了。

If you moved the change in threadcount in front of the call to pthread_create , then the mutex code could just surround the actual decrement.

8. 当不再使用互斥量时,可以调用pthread _ mutex_destroy来释放在初始化过程中分配的资源。

When you"re done with a mutex, you can release any resources allocated during initialization with a call to pthread_mutex_destroy .

9. 锁定互斥对象时,线程将调用 pthread_cond_wait(&mycond,&mymutex)。

While still holding the mutex lock, our thread will call pthread_cond_wait(&mycond,&mymutex).

10. 调用 pthread_mutex_trylock() 时将尝试锁定互斥对象。

When you call pthread_mutex_trylock() you"ll attempt to lock the mutex.

11. 最后,当一个线程从调用pthread_cond_wait而被唤醒时,要做的第一件事就是重新锁定它在最初调用时解锁的那个互斥量。

Finally, the first thing any thread tries to do when waking up from pthread_cond_wait is re-lock the mutex it unlocked when initially called.

12. 并且绝对不要对您未保持锁的互斥对象进行解锁操作(否则,pthread _ mutex_unlock调用将失败并带一个非零的eperm返回值)。

And you should never unlock a mutex that you don"t hold a lock for (otherwise, the pthread_mutex_unlock call will fail with a non-zero EPERM return value).

13. 在获取互斥锁之前和之后各调用这个例程一次,从而根据经过的时间决定是否需要进一步处理。

This routine is called twice-before and after mutex acquisition-to determine whether further processing is required based on the time elapsed.

14. 如果碰巧已经锁定了互斥对象,调用者将进入睡眠状态。

If the mutex already happens to be locked, the caller will go to sleep.

15. 这两个函数调用的作用就是警告其它线程,要它们继续睡眠并等待轮到它们对互斥对象加锁。

The calls act as a warning to other threads to go to sleep and wait their turn for the mutex lock.

16. 当拥有这个互斥信号量的线程不再需要它的时候,可以调用ReleaseMutex,以便将它释放回系统。

ReleaseMutex is called when the owning thread no longer needs the mutex, and it can be conveniently released to the system.

17. 对已锁定的互斥对象上调用pthread _ mutex_lock的所有线程都将进入睡眠状态,这些睡眠的线程将“排队”访问这个互斥对象。

All threads that go to sleep from calling pthread_mutex_lock on an already-locked mutex will "queue up" for access to that mutex.

18. 最后,可以通过调用mutex_is_locked检查互斥锁的状态。

Finally, you can check the status of a mutex through a call to mutex_is_locked.

19. 当pthread_cond_wait被调用后,它解锁互斥量并停止线程的执行。

When invoked, pthread_cond_wait unlocks the mutex and then pauses execution of its thread.

20. 如果一个命名的互斥对象在本函数调用之前已经存在,则返回已经存在的对象句柄。

If the named mutex object existed before the function call, the function returns a handle to the existing object and GetLastError returns ERROR_ALREADY_EXISTS.

21. 在获取互斥锁之前和之后各调用这个例程一次,从而根据经过的时间决定是否需要进一步处理。

This routine is called twice-before and after mutex acquisition -to determine whether further processing is required based on the time elapsed.

22. 在获取互斥锁之前和之后各调用这个例程一次,从而根据经过的时间决定是否需要进一步处理。

This routine is called twice-before and after mutex acquisition -to determine whether further processing is required based on the time elapsed.

版权声明:问题易所有作品(图文、音视频)均来源网络,版权归原创作者所有,与本站立场无关,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理!