Changes between Version 37 and Version 38 of processus_thread


Ignore:
Timestamp:
Nov 7, 2017, 2:10:29 PM (6 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • processus_thread

    v37 v38  
    7676=== 3.1) fork() ===
    7777
    78 FIRST SPECIFICATION:
     78FIRST SPECIFICATION (DEPRECATED)
    7979
    8080A thread of parent process P, running in a cluster K,  executes the fork() system call to create a new process C on a remote cluster Z, that will  become the owner for the C process. ALMOS-MK creates the first C process descriptor in the same cluster as the parent cluster P, and postpone the costly remote copy of VSL and GPT from P to C, because this copy is useless in case of exec(). When the fork() system call returns, the C process owner cluster is Z, but the reference process descriptor is in cluster K. The child process and the associated main thread will be migrated to cluster Z later, when the child process makes an "exec" or any other system call.
     
    9090SECOND SPECIFICATION
    9191
    92 A thread of parent process P, running in a cluster X,  executes the fork() system call to create a child process C on a remote cluster Y, that will  become both the owner and the reference cluster for the C process. If the reference cluster Z for process P is different from X, the work must be done in  cluster Z, because only the reference cluster Z contains a complete description of the parent process VSL and GPT.
    93 
    94 A new process descriptor, and a new thread descriptor must be created and initialized in target cluster Y for the child process.
     92A thread of parent process P, running in a cluster X,  executes the fork() system call to create a child process C on a remote cluster Y, that will  become both the owner and the reference cluster for the C process. A new process descriptor, and a new thread descriptor must be created and initialized in target cluster Y for the child process.
     93The calling thread  an run in any cluster. If the reference cluster Z for process P is different from the calling thread cluster X, the calling thread must use a RPC to ask the reference cluster Z to do the work, because only the reference cluster Z contains a complete description of the parent process VSL and GPT.
    9594
    9695Regarding the process descriptor, a new PID must be allocated in cluster Y.  The child process C inherit the vsegs registered in the parent process VSL, but the ALMOS-MKH replication policy depends on the vseg type: