您的位置:首页 > 运维架构

Take care of fopen

2007-11-30 00:01 190 查看
For every C/C++ programmers, fopen may be one of the most familiar functions. Taking myself as instance, I used to use it quite freely, as it's free lunch. But there's no free food ever -- the FILE* number you open at the same time in one single process cannot surpass 512 as default. It's no larger than 2048 even with _setmaxstdio()'s help.

See? This constraint is so covert & hard to find in a large project -- it's been cost 2 days or more on two people, including me.

We'll definitely meet many submerged rocks while devoting yourself to large projects. Many of these hide in the corner you thought it's always been safe and which is not, and some just come from the place outside your code of the projects.

So, take care~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: