K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-09T02:50:23.070937Z K 7 svn:log V 380 Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread, kernel has to iterate through process and thread list, this is quite inefficient. With this change, test shows in extreme case performance is dramatically improved. Earlier patch was reviewed by: jhb, julian END