Changes between Version 128 and Version 129 of processus_thread


Ignore:
Timestamp:
Oct 20, 2020, 12:58:30 PM (4 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • processus_thread

    v128 v129  
    107107See [https://www-soc.lip6.fr/trac/almos-mkh/browser/trunk/kernel/syscalls/sys_exec.c sys_exec.c]
    108108
    109 After a fork() system call, any thread of a process P can execute an exec() system call. This system call forces the P process to execute a new application, while keeping the same PID, the same parent process, the same open file descriptors, and the same environment variables. The existing P process descriptors will be cleaned up (both the reference and the copies) and all user threads will be deleted. A new main thread descriptor are created in the reference cluster from values contained in the .elf file defining the new application. The calling thread can 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.
     109After a fork() system call, any thread of a process P can execute an exec() system call. This system call forces the P process to execute a new application, while keeping the same PID, the same parent process, the same open file descriptors, and the same environment variables. The existing process descriptor will be cleaned up (both the reference and the copies) and all user threads will be deleted. A new main thread descriptor is created in the reference cluster from values contained in the .elf file defining the new application. The calling thread can 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.
    110110
    111111At the end of the exec() system call, the cluster Z is both the owner and the reference cluster for process C, the latter of which contains one single thread in cluster Z.