• 确定特定体系结构的变化比如互斥锁定(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

  • 然而如果互斥对象锁定这个调用不会阻塞

    However, if the mutex is locked this call won't block.

    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

  • 如果互斥持有(锁定),那么就返回1;否则,返回0

    If the mutex is held (locked), then one is returned; otherwise, zero.

    youdao

  • 调用 pthread_mutex_trylock() 时尝试锁定互斥对象。

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

    youdao

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

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

    youdao

  • 一旦 pthread_cond_wait()锁定互斥对象,那么返回允许1 号线程继续执行

    Once pthread_cond_wait() has the lock, it will then return and allow thread 1 to continue execution.

    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

  • 如果线程2运行就要锁定count _ mutex,而这个互斥已经线程1占有了

    If thread two runs, it'll want to lock count_mutex, which is held by thread one.

    youdao

  • 如果线程1运行就要锁定rand _ mutex,可是这个互斥量已经线程2阻塞了。

    If thread one runs, it'll want to lock rand_mutex, which is held by thread two.

    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

  • 如果可能设计程序决不锁定一个已经锁定互斥量。

    If possible, just design your program never to re-lock a mutex it already has.

    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

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

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

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