Changes between Version 118 and Version 119 of processus_thread


Ignore:
Timestamp:
Nov 3, 2019, 5:24:35 PM (5 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • processus_thread

    v118 v119  
    160160 * After taking the lock, the J thread tests the FLAG_KILL_DONE in the T thread descriptor:
    161161   * If the FLAG_KILL_DONE is set, the K thread arrived first and is blocked on the BLOCKED_JOIN condition: the J thread get the ''exit_status'' from the T thread, unblocks the K thread, resets the FLAG_KILL_DONE in the T thread, releases the "join_lock" in T thread, and returns.
    162    * If the FLAG_KILL_DONE is not set, the J thread arrived first: the J thread registers its extended pointer in the T thread "join_xp" field, set the FLAG_JOIN_DONE in the T thread, sets the BLOCKED_EXIT bit in the J thread, releases the "join_lock" in the T thread, and deschedules. It get the ''exit_status" from the T thread and  returns when it is unblocked by the K thread.
     162   * If the FLAG_KILL_DONE is not set, the J thread arrived first: the J thread registers its extended pointer in the T thread "join_xp" field, set the FLAG_JOIN_DONE in the T thread, sets the BLOCKED_EXIT bit in the J thread, releases the "join_lock" in the T thread, and deschedules. It get the ''exit_status'' from the T thread and  returns when it is unblocked by the K thread.
    163163
    164164== __6) Process destruction__ ==