• 确定特定体系结构的变化比如互斥锁定(mutex locking)。

    Identifying architecture-specific changes such as mutex locking.

    youdao

  • 阻塞情况下,托管任务继续持有调度期间获得所有共享资源(例如存储资源、任务级别的资源和互斥锁定)。

    While blocked, the managed task continues to hold any Shared resources it acquired during the course of its dispatch (for example, storage resources, task-level resources, and mutex locks).

    youdao

  • 那个错误不是归咎于锁定互斥

    The error is not due to the locked mutex.

    youdao

  • 这个函数会获得一个指向正在尝试锁定互斥指针

    This function gets a pointer to the mutex it is trying to lock.

    youdao

  • 代码可以反复互斥对象锁定和解锁,以检查任何变化

    Your code could repeatedly lock and unlock the mutex, checking for any changes to the value.

    youdao

  • 另外还可以使用递归类型互斥量,这种互斥允许同一个互斥锁定多次

    Otherwise, you can use the "recursive" mutex type, which allows the holder of the lock to lock the same mutex multiple times.

    youdao

  • 互斥锁定或者发生错误时,函数返回

    The function returns when the mutex is locked, or if an error occurred.

    youdao

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

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

    youdao

  • 如果另一个线程锁定那个互斥,则pthread _ mutex _ trylock不会阻塞

    If another thread locks the mutex, the pthread_mutex_trylock will not block.

    youdao

  • 这个了一些新的工作;锁定一个叫做count _ mutex的互斥量。

    This routine does something new; it locks a mutex called, creatively enough, count_mutex.

    youdao

  • 锁定互斥对象线程调用 pthread_cond_wait(&mycond,&mymutex)。

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

    youdao

  • 允许原子地(atomically)解除互斥锁定等待条件变量不会有干涉其他线程可能

    It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread.

    youdao

  • 互斥api提供了5个函数其中3个用于锁定用于解锁个用于测试互斥锁。

    The mutex API provides five functions: three are used for locking, one for unlocking, and another for testing a mutex.

    youdao

  • 如果线程a试图锁定互斥对象,而此时线程b锁定同一个互斥对象时,线程a就将进入睡眠状态。

    If thread "a" tries to lock a mutex while thread "b" has the same mutex locked, thread "a" goes to sleep.

    youdao

  • 锁定操作设置涉及分配预先锁定互斥锁。

    The setup for a lock operation involves allocation of a prelocked mutex.

    youdao

  • 如果碰巧已经锁定互斥对象调用进入睡眠状态

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

    youdao

  • 一个互斥锁定必须解锁

    After a mutex is locked, it must be unlocked.

    youdao

  • 可以推测到,当线程试图锁定一个未加互斥对象时,POSI x线程同意锁定不会使线程进入睡眠状态。

    As you may have guessed, the POSIX threads library will grant a lock without having put the thread to sleep at all if a thread tries to lock an unlocked mutex.

    youdao

  • 两个级别上执行锁定(清单7):读写各个节点包含一个互斥

    Locking occurs on two levels (see Listing 7) : The list has a read-write lock, while individual nodes contain a mutex.

    youdao

  • 会检查互斥那个时刻是不是解除锁定的(清单9)。

    It also checks whether the mutex is unlocked at that time (see Listing 9).

    youdao

  • 这个坏程序开发者起初想法好的,即真正需要使用之前锁定这些互斥量,但是他却直到运行结束解锁

    The hapless developer of this monstrosity came up with the clever idea of only locking things when they are actually about to be used, but deferring unlocking until the end of a run.

    youdao

  • 非争用解锁操作一个锁定互斥锁返回线程锁定缓存

    Uncontested unlock operations return a locked mutex to the thread lock cache.

    youdao

  • 锁定互斥对象线程能够存取复杂数据结构不必担心同时其它线程干扰

    The thread in this image that has the mutex locked gets to access the complex data structure without worrying about having other threads mess with it at the same time.

    youdao

  • 占有这个惟一物体过程就叫做锁定或者获得互斥

    Once you have it, no one can take it away from you until you put it down. The process of picking up the unique object is called locking, or acquiring, the mutex.

    youdao

  • 函数pthread_cond_wait主要就是用于阻塞线程的,两个参数第一个指向条件变量指针第二个是一个锁定了的互斥

    The function primarily used for this is pthread_cond_wait . It takes two arguments; the first is a pointer to a condition variable, and the second is a locked mutex.

    youdao

  • 主线程:锁定互斥增量threadcount

    Main thread: Lock mutex and increment threadcount.

    youdao

  • 可以使用 pthread_mutex_trylock()测试某个互斥是否已经锁定不需要真正 地去锁定

    You can also use the pthread_mutex_trylock() to test whether a mutex is locked without actually blocking it.

    youdao

  • 最后一个线程调用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.

    youdao

  • 为了帮助实现互斥分配锁定时间最小化JVM管理全局缓存和一个单线程锁缓存,其中每个缓存包含了未分配的 pthread_mutex。

    To help minimize mutex allocation and locking time, the JVM manages a global lock cache and a per-thread lock cache where each cache contains unallocated pthread_mutexes.

    youdao

  • 同样地线程a正锁定互斥对象时,如果线程c试图锁定互斥对象的话,线程c也临时进入睡眠状态。

    Likewise, if thread "c" tries to lock the mutex while thread "a" is holding it, thread "c" will also be put to sleep temporarily.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定