发明名称 Mechanism for enabling a thread unaware or non thread safe application to be executed safely in a multi-threaded environment
摘要 Executing a thread unaware or non-thread-safe application in a multi-threaded environment is potentially hazardous. If multiple instances of the thread unaware application are executed concurrently in the same process space, as may be the case in a multi-threaded environment, one instance may try to modify or overwrite the information used by the other instance, which can lead to serious errors. To enable a thread unaware application to be executed safely in a multi-threaded environment, multiple thread pools are implemented. That is, for each thread-unaware or non-thread-safe application, a separate thread pool is defined and associated with the application. Unlike other thread pools, though, this thread pool has its maximum number of threads parameter set to "1". By limiting the number of threads in the pool to 1, it is guaranteed that there will be no more than one instance of the thread unaware application executing at any one time. This in turn precludes any possibility of one instance of the application overwriting or modifying the information used by another. By implementing thread pools in this manner, execution of the thread-unaware application in a multi-threaded environment is made safe.
申请公布号 US6604125(B1) 申请公布日期 2003.08.05
申请号 US20000574314 申请日期 2000.05.19
申请人 SUN MICROSYSTEMS, INC. 发明人 BELKIN RUSLAN
分类号 G06F9/00;G06F9/46;G06F9/48;G06F9/50;(IPC1-7):G06F9/00 主分类号 G06F9/00
代理机构 代理人
主权项
地址