• QNX Thread 生命周期解释


     

    STATE_CONDVAR
      The thread is blocked on a condition variable (e.g., it called pthread_cond_wait()).
    STATE_DEAD
      The thread has terminated and is waiting for a join by another thread.
    STATE_INTR
      The thread is blocked waiting for an interrupt (i.e., it called InterruptWait()).
    STATE_JOIN
      The thread is blocked waiting to join another thread(e.g., it called pthread_join()).
    STATE_MUTEX
      The thread is blocked on a mutual exclusion lock (e.g., it called pthread_mutex_lock()).
    STATE_NANOSLEEP
      The thread is sleeping for a short time interval (e.g., it called nanosleep()).
    STATE_NET_REPLY
      The thread is waiting for a reply to be delivered across the network (i.e., it called MsgReply*()).
    STATE_NET_SEND
      The thread is waiting for a pulse or signal to be delivered across the network (i.e., it called MsgSendPulse(), MsgDeliverEvent(),or SignalKill()).
    STATE_READY
      The thread is waiting to be executed while the processor executesanother thread of equal or higher priority.
    STATE_RECEIVE
      The thread is blocked on a message receive (e.g., it called MsgReceive()).
    STATE_REPLY
      The thread is blocked on a message reply (i.e., it called MsgSend(),and the server received the message).
    STATE_RUNNING
      The thread is being executed by a processor.The kernel uses an array (with one entry per processor in the system) tokeep track of the running threads.
    STATE_SEM
      The thread is waiting for a semaphore to be posted (i.e., it called SyncSemWait()).
    STATE_SEND
      The thread is blocked on a message send (e.g., it called MsgSend(),but the server hasn't yet received the message).
    STATE_SIGSUSPEND
      The thread is blocked waiting for a signal (i.e., it called sigsuspend()).
    STATE_SIGWAITINFO
      The thread is blocked waiting for a signal (i.e., it called sigwaitinfo()).
    STATE_STACK
      The thread is waiting for the virtual address space tobe allocated for the thread's stack (parent will have called ThreadCreate()).
    STATE_STACK
      The thread is waiting for the virtual address space tobe allocated for the thread's stack (parent will have called ThreadCreate()).
    STATE_STOPPED
      The thread is blocked waiting for a SIGCONT signal.
    STATE_WAITCTX
    The thread is waiting for a noninteger (e.g., floating point) context to become available for use.
    STATE_WAITPAGE
    The thread is waiting for physical memory to beallocated for a virtual address.
    STATE_WAITTHREAD
    The thread is waiting for a child thread to finishcreating itself (i.e., it called ThreadCreate()).
    In discussion and in the documentation, we usually omit the “STATE_” prefix.

  • 相关阅读:
    7 MSSQL数据库备份与恢复
    6.Netbackup-Oracle数据库恢复演练报告(下)
    5、Oracle备份(oracle备份脚本配置)
    1.6 NBU Catalog备份还原
    标示符和关键字的总结--希望别再犯错
    JDBC_基础6步骤- 及优化
    算法总结
    bootstrap-全局CSS&js插件
    bootstrap入门&栅格系统
    JavaScript中的事件
  • 原文地址:https://www.cnblogs.com/VARForrest/p/16435003.html
Copyright © 2020-2023  润新知