Version 1 (modified by Zhongwei Yao, on 08/19/12 at 15:10:35) (diff) |
---|
Use Hash or Map in POSIX Key
current implementation's problem
There are 2 problems in current implementation of POSIX Key(more details are described next section). #The POSIX key area is not properly extended when the number of threads is increased(dynamically created) if POSIX threads are configured as "unlimited", which is a known bug. #Extra memory is reserved in keys for each thread or task in current implementation, which can be heavy memory overhead when keys increase.