Changes between Version 37 and Version 38 of processus_thread
- Timestamp:
- Nov 7, 2017, 2:10:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
processus_thread
v37 v38 76 76 === 3.1) fork() === 77 77 78 FIRST SPECIFICATION :78 FIRST SPECIFICATION (DEPRECATED) 79 79 80 80 A 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. … … 90 90 SECOND SPECIFICATION 91 91 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. 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. A new process descriptor, and a new thread descriptor must be created and initialized in target cluster Y for the child process. 93 The 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. 95 94 96 95 Regarding 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: