I. Five I/O models
1. Blocking I/O
The I/O model we mentioned above is blocking I/O, that is, calling the Recv system call. If there is no data, the wait will be blocked, when the data arrives, the data is copied from the kernel space (set
There are two types of Linux linked files, which are similar to shortcuts in windows. However, the Linux link file type is different from that in windows.
One of the most important features of a Linux file system is its file link. The link is a
Chapter 4 describes the kernel debugging technology... Use it later
Chapter 5 concurrency and Competition
1. One of the core issues of operating system programming is concurrency management.
2. What is a race: there are a large number
Linux Kernel building system:
00-Index-This file: info on the kernel Build ProcessKbuild.txt-Developer information on kbuildKconfig.txt-Usage help for make * configKconfig-language.txt-Specification of config language, the language in kconfig
Put an article on MSNArticleMigrate.
The Windows platform sends messages to Linux and uses the line break "\ n" in the message. The result fails.
The reason is that the "\ n" used by the text component in SWT in settext () is used, and the
1, download JDK, you can download directly on RHEL, you can also download on the local machine, and then pass through psftp (jdk-6u20-linux-i586-rpm.bin), of course filezilla FTP tools more useful
2. Use Putty to connect to Linux
3.
The first (left) in drwxr-XR-X indicates whether the current directory is a directory or a file, D indicates a directory, and-indicates a common file.
The last nine digits are divided into three groups, each of which serves as one group. From left
This is a big job in our operating system. The principle is to hook the proc file system, the readdir function under the root directory. Replace the third parameter filldir. CodeBurst short, 60 lines. Ubuntu 10.04 is available for testing. #
1. This book uses scull as an example to introduce the character device driver.Program.
Scull is a character device driver that operates the memory area.
2. Obtain, cancel, and register a device number.
@ Get the dev_t device number
The
Name: less
Permission: All Users
Usage: less [Option] filename
Note:The role of less is very similar to that of more. It can be used to browse the content of text files. The difference is that less allows users to scroll back to browse the
I want to re-compile the kernel of the new laptop system a few days ago ...... Dumb's head is that tar-xvjf Linux-*** cannot be used to decompress the package. After a close look, we found that the kernel package downloaded on the official kernel
I. POSIX condition Variables
A scenario of Inter-thread synchronization: thread a needs to wait for a condition to be established before it can continue to run. Now this condition is not true, and thread a will block the wait, when thread B sets
Next, let's take a look at the thread exit function and wait function.
# Include
Void pthread_exit (void * value_ptr );
Value_ptr: the return value of the thread. Pthread_join () is detected.
Function: the thread exits.
# Include
Int pthread_join (
From: http://hi.baidu.com/ss0ss70/blog/item/b62aaeef4376a6dd2f2e21a1.html
The mdev (busybox simplified version of udev) source code knows the basic principles of mdev:A. When the mdev-s command is executed, mdev scans/sys/block (the block
Http://www.2cto.com/ OS /201109/102812.html
1. Introduction to SEDSed is an online editor that processes a row of content at a time. During processing, the currently processed rows are stored in the temporary buffer, called the pattern space. Then,
1. Introduce the simplest Hello World Driver .... I have read this part before.
2. Differences between module programs and Applications
@ The application executes a single task sequentially from start to end. The module program must first register
@ Page {margin: 2 cm}P {margin-bottom: 0.21}-->
In this yearCESA large number of international exhibitionsLinuxThe emergence of consumer electronic products is overwhelming. Take this seriously?
March lunar January8Early morning (Beijing Time
View the time zone: # Cat/etc/sysconfig/clock
View System Time: # date
Modification date: # date-s 25/10/2012
Modification time: # date-s 21:45:36
Use the ntpdate command to automatically synchronize time. You can find the relevant
The open function is used to open and create files. The following is a brief description of the open function.
# IncludeFcntl. h>
Int open (const char * pathname, int Oflag,.../* mode_t mode */);
Returned value: if the operation is successful, the
First, why should we establish a kernel tree? Because we know that the driver can be compiled into the kernel for execution, or loaded into the kernel as a module for execution. The kernel of the driver version 2.6 is different from that of the
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