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

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

    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()锁定互斥对象,那么返回允许1 号线程继续执行

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

    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

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

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

    youdao

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

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

    youdao

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

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

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