Windows equivalent of ulimit -n

大城市里の小女人 提交于 2019-11-27 07:07:45

问题


What is the windows equivalent of the unix command " ulimit -n" ?

Basically, i want to set the maximum fd limit via command prompt.


回答1:


hmm... I may have been wrong before - setmaxstdio (see here) - but it is per-process, not system wide.

I may be wrong, but I didn't think there was a limit to set in Windows... but unless you can say how this relates to programming, I expect this answer will be closed soon.

If you are in the "IT Pro" area (rather than development), then there is a sister-site, serverfault.com - coming soon for this type of question.




回答2:


I don't believe that current Windows O/S have a limit on the total number of file descriptors, but the MS runtime library (msvcrt.dll) has a per process limit of 2048, albeit as far as I know that's not enforced by the O/S.

It can allegedly be increased only by building your own version of the MS runtime library from source.



来源:https://stackoverflow.com/questions/729162/windows-equivalent-of-ulimit-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!