Linux KernelCodeSeveral documents under Documentation/zh_cn are worth reading, especially for people who suffer from reading English. Thank you for your hard work!
Document Content
----------------------------
How howto participates in
What is the main advantage of creating links to a file instead of copies of the file?A: The main advantage is not really that it saves disk space (though it does that too),Rather, that a change of perpermissions on the file is applied to all the
As we all know, modern operating systems have implemented the "virtual memory" technology, which not only breaks through the physical memory restrictions in terms of functionality, so that programs can manipulate space larger than the actual
Installation Service: sudo apt-Get install vnc4server
Install the client: sudo apt-Get install xvnc4viewer
Start the service vncserver. The first time you start the service, you will be prompted to enter a password.
Start the client:
In Linux, it is estimated that you often use the PWD command, which is to print the current working path, that is, print working directroy. Today we also use the C language to implement this command.To implement this function, you need to use the
For the life of a process, we can make a small summary using the image metaphor: with a fork, a new process is born, but it is just a clone of the old process. Then, with exec, the new process was reborn and independent from home, and started a
Mutex lock
Although the IPC semaphore mechanism can also be used in POSIX thread to implement mutex functions, the semphore function is obviously too powerful, the POSIX thread defines another set of mutex functions for thread synchronization.
1.
Type discovery
GCC allows you to identify types by referencing variables. This operation supports generic programming. Similar functions can be found in many modern programming languages, such as C ++, Ada, and Java & #8482. Linux uses typeof to
The implementation steps are as follows:1. Change the module alias in the/etc/modprobe. conf file.For example, alias eth0 pcnet32
Change to alias LAN pcnet32
2. Change the name of the NIC configuration file to
Two days ago, we found that the memory usage of STL programs in Linux was relatively large. No Memory leakage was found through the valgrind check. The analysis may be related to STL, So we tested STL separately.
The program creates 10 threads and
Linux out-of-memory (OOM) Killer
Linux has a feature: OOM killer, a protection mechanism, which is used to avoid serious problems when the memory is insufficient, and to kill unrelated processes first, that is, when the memory is seriously
Linux GDB multi-thread independent debugging thread
Http://coolshell.cn/articles/3643.html
I. multi-thread debugging
Multi-threaded debugging may be the most frequently asked. In fact, the following commands are important:
Info thread to view the
Address: http://tech.ddvip.com/2008/07/121541159946496_2.html
1 Introduction
Boot Loader is a self-lifting program that runs before the operating system kernel runs, it is used to initialize hardware devices, change the operating mode of the
Install JDK in Linux as follows:
Step 1: Check whether the built-in JDK of Linux is installed
(1) Check the installed JDK: # Java-version
Step 2: Install JDK
download from sun
Jdk1.6.0 _ 29-linux-i586-rpm.bin orjdk1.6.0_29-linux-i586.binCreate a
A few days ago, after the program occupied more than 20 GB of memory, it unexpectedly exited. To learn about the basic concept of memory, I Will repost an article:
A process (a program executed) occupies a certain amount of memory. It is used to
With the rapid development of the Internet and the maturity of Linux enterprise applications, Linux is widely used in the server field. How to implement remote management of Linux becomes the primary task of network administrators. We often see
For the IA64 architecture, in Linux operating systems, especially for multi-CPU Systems with SMP or NUMA architectures, when describing the private data of each CPU, the Linux operating system provides the per_cpu mechanism.
The per_cpu mechanism
1. Compile the header file and source file of the library.
2. compile all involved source files as the target file in the following way:# G ++/GCC-g-C-FPIC-O library1.o library1.cpp# G ++/GCC-g-C-FPIC-O library2.o library2.cpp#......#
3. link all
Shell: Bash. I use Bash's VI command line method.
Editor: vim, emacs
Program Development: GCC, GDB, make, LD, scheme48, j2sdk, Perl, Python, Tcl/tk...
Thesis, magic lamp tool: latex, Context
Drawing tool: metapost. This language is so powerful that
Linux driver framework.
I. Linux Device Drivers and external interfaces can be divided into three parts::
1. interfaces between the driver and the operating system kernel. This is done through the file_operations (include/Linux/fs. h) data structure.
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