1、writing thread allocator