A process consists of the following elements:
(1) Context of the process
(2)
ProgramCurrent execution directory
(3) files and directories of program services
(4) program Access Permissions
(5) memory and other system resources allocated to
I think Linux multithreading is inferior to Windows. The reasons are as follows:
I. FunctionsWaitforsingleobject can be replaced by pthread_cond_wait in Linux, but pthread_cond_wait cannot be used to wait for thread handle. To wait for thread
Each
Program It is essentially linked to one or more databases. For example, a program using the C function is linked to the C Runtime Library, and a GUI program is linked to the window library. In either case, you have to decide whether to link to
Linux Kernel address space
1. the kernel space is mapped by the kernel, which is not fixed as the process changes.Because it is in the kernel state, and the Directory items corresponding to the kernel space in the page directory of all processes
From: http://blog.csdn.net/wind19/article/details/7054336
View Processes
1. Top Command
TOP command to view system resource status
Load average indicates how many processes tried to exclusively occupy the CPU in the past period.
Zombie process: no
A large number of linked lists are used in the Linux kernel to organize data structures. Most of these linked lists use a set of wonderful linked list data structures implemented in [INCLUDE/Linux/list. H.
Prerequisites:
# Define offsetof (type,
A few days ago, our operating system teacher gave us a question about using fork to create a process.
The following program is referenced:
# Include # Include # Include
Int main (){Int PID;PID = fork ();
If (PID {Fprintf (stderr, "fork failed/N ");
The so-called "false" means that the Ping is successful, but ssh does not go up. No other operations have been responded, including the Apache deployed above, which cannot open the page.
As a multi-task operating system, it is not so easy to keep
1. download the latest stable version of Linux kernel-linux-3.6.6 in the following website
Http://www.kernel.org/
2. decompress the package to the current directory.
Tar-xvjf linux-3.6.6.tar.bz2
3. Modify rows 195th and 196th in the makefile
Linux with a general Driver Based on the PWM buzzer-Pwm-beeper.c (located in the drivers/input/MISC directory), it belongs to the input subsystem. Therefore, to port the driver, you only need to add the platform device and related properties of the
As described above, the default configuration of the system is to display the logo image at startup, that is, the logo_linux_clut224.ppm image under the drivers/Video/logo directory. But this logo is displayed in the upper left corner of the LCD,
On my Development Board, you can use the S3C2440 gpg4 pin to control the LCD backlight. That is, when the LCD is set to 1, the LCD will be switched on and off when the LCD is cleared.
In Linux, LCD backlights are defined as led platform devices.
Process Concept
A process is a running activity that can be executed concurrently by a program with independent functions about a data set. It is a computer program in the active state. As the basic cell of the system, a process is not only an
Create a Linux Process
# Include
# Include
Pid_t fork ();
The fork function generates system calls for new processes in Linux.
The relationship between the parent process and the child process is the relationship between management and
Linux interrupt implementation method (III): Interrupt Processing Model
Iv. Interrupt Processing ModelTo understand the relationship between desc-> handle_irq (IRQ, DESC) and the interrupt we registered, we need to understand the interrupt
Linux interrupt implementation method (2): interrupt handling process
Iii. interrupt handling processThis section will take S3C2410 as an example to describe how the interrupt is executed step by step in the linux-2.6.26 kernel from the beginning of
In the embedded Linux system, the method for obtaining the total disk space is generally used in the same way as busybox.
Function: setmntent, getmntent, endmntent
The following describes how to directly read/proc/files and obtain the total disk
In the past, we basically used the non-blocking method (connect_nonb) in UNIX Network Programming to Implement the connect () Timeout. I saw an article on the Internet today, which is very interesting,ReprintedAs follows:When I read the Linux kernel
Linux has a protection mechanism, oom killer, which is used to prevent Linux from getting too serious problems when the memory is insufficient and kill irrelevant processes.
Addressing is limited in a 32-bit CPU architecture. The Linux kernel
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