Linux Study Notes-kernel Management

Source: Internet
Author: User
Linux Study Notes-kernel management-general Linux technology-Linux programming and kernel information. For details, see the following. (1) in Linux, run the following executable file format in the current directory:

#./Executable File Name

The. /indicates the current directory. The reason for adding it is that the executable file name is equivalent to an external command, while the shell will find the executable file in the $ PASH path when executing the external command, the file cannot be found. /indicates that the executable file is in the current directory.

(2) Principles of Process Creation

The first process created by the system is the init process.

All processes in the system are created by the current process using the System Call fork.

After a child process is created, it inherits the resources of the parent process, but the two processes are independent of each other.

The return value of fork () executed by the parent process is the PID value of the child process, and the return value of fork () executed by the child process is 0.

The wait () function is usually used in the code of the parent process. It is used to wait for all child processes to end before the parent process ends. If the parent process ends earlier than the child process, the child process changes to dead state. The init process is the parent process of all processes.

Process Scheduling Policy: a time-based scheduling policy based on dynamic priority.

Create thread: pthread_create () function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.