近段时间用DELPHI进行多线程程序设计,打开DELPHI帮助说明'在单处理器系统中一个进程所包含的线程推荐上限为16',请问超过16会怎样?如果设计到一个进程20~30个线程,是否可行?

解决方案 »

  1.   

    win95 是这样。超过16没问题,记得当时说的是影响效率。
    NT4/NT5都没问题的。
      

  2.   

    Do not create too many threads in your application. The overhead in managing multiple threads can impact performance. The recommended limit is 16 threads per process on single processor systems. This limit assumes that most of those threads are waiting for external events. If all threads are active, you will want to use fewer.推荐
    没有说不能超过
    主要是考虑效率