首页 > 代码库 > 线程 执行路径 上下文
线程 执行路径 上下文
多线程的start_routine指明了CPU的一个可执行流;
多线程的上线文说明了执行流现在的运行情况;
多线程的属性说明了上线文的数据结构。
https://computing.llnl.gov/tutorials/pthreads/
- pthread_create arguments:
- thread: An opaque, unique identifier for the new thread returned by the subroutine.
- attr: An opaque attribute object that may be used to set thread attributes. You can specify a thread attributes object, or NULL for the default values.
- start_routine: the C routine that the thread will execute once it is created.
- arg: A single argument that may be passed to start_routine. It must be passed by reference as a pointer cast of type void. NULL may be used if no argument is to be passed.
线程 执行路径 上下文
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。