-
公开(公告)号:US20230393887A1
公开(公告)日:2023-12-07
申请号:US18204877
申请日:2023-06-01
Applicant: APPLE INC.
Inventor: Hamza B. Sohail , Joel Middendorf , Han Ming Ong
Abstract: Techniques may include launching an application and inserting a dynamic library into the application. An intercept wait function can intercept a target thread's call for a semaphore wait function. The semaphore wait function may request adding the target thread to a wait queue. The wait list of a table may be checked for the target thread. The table can store entries in the wait list or a signal list where an entry may include a quality-of-service category and a hang flag for a thread. The entry representing the target thread may be created after determining that the entry is not in the wait list. The semaphore wait function can enqueue the target thread to the wait queue. The target thread can be compared to entries in the signal list. The hang flag for the entry representing the target thread can be updated based on the comparison.