首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >更改线程的并发级别会做什么?

更改线程的并发级别会做什么?
EN

Stack Overflow用户
提问于 2011-07-22 11:43:16
回答 1查看 2.2K关注 0票数 3

我正在阅读pthread_setconcurrency()的手册页,不知道“并发级别”是什么意思。这只是一个模糊的术语;改变并发级别是否会改变调度策略和进程优先级?它还做其他的事情吗?

EN

回答 1

Stack Overflow用户

发布于 2011-07-22 11:46:02

manual page on Linux

代码语言:javascript
运行
复制
NOTES
       The default concurrency level is 0.

       Concurrency levels are only meaningful for M:N threading implementations, where at any moment a subset of a process's set  of  user-level  threads
       may be bound to a smaller number of kernel-scheduling entities.  Setting the concurrency level allows the application to give the system a hint as
       to the number of kernel-scheduling entities that should be provided for efficient execution of the application.

       Both LinuxThreads and NPTL are 1:1 threading implementations, so setting the concurrency level has no meaning.  In other  words,  on  Linux  these
       functions merely exist for compatibility with other systems, and they have no effect on the execution of a program.
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6785422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档