Experimental contentTo understand the timing of process scheduling in Linux, you can search the kernel code for the schedule () function, see where the schedule () is called, and determine whether the summary of our course content is accurate;Use GDB trace to analyze a schedule () function to verify your understanding of Linux system process scheduling and process switching processes;Special attention and c
number is $0x80. Therefore, the process of system calling is the process of int $0x80. When the command int $0x80 is executed, the processor switches the stack to the system stack of the current process, automatically presses SS, ESP, EFLAGS, CS, and EIP at the top of the stack, and then jumps to system_call.
The process of system_call is as follows:
(1) push the system call number in EAX to the top of the stack.
(2) press the remaining registers to the top of the stack to form a pt_regs struct
Terminal logout exit Terminal exit Exit Ctrl+u the end of the ctrl+d to delete the next ctrl+e move to the end of CTRL + a move to the front ctrl+k delete the four after the cursor, statstat to view the file details[[Email protected]1]# stat/root/1/1. Txt.bak.bak File: '/root/1/1. Txt.bak.bak ' Size:0Blocks:0IO Block:4096Regular Empty filedevice:ca01h/51713d Inode:158242Links:2Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (1003/Ruanwenwu) Access: .-Ten- - A: -:06.221000000+0800Modify: .-Ten- -
Linux system add root certificate linux Certificate Trust List, linux Certificate
1. https certificate access in linux
[root@boss-test-dev001-jydx~]#curl-vhttps://mobile.mycard520.com.tw*Abouttoconnect()tomobile.mycard520.com.twport443(#0)*Trying220.130.127.122...connected*Connectedtomobile.mycard520.com.tw(220.130.127
System callsis a soft interrupt, API function, let the upper application fall into the kernelProcess ManagementProcess scheduling, scheduling algorithm, process three-stateProcess is the minimum unit fork for CPU scheduling resourcesVFS Virtual File ManagementUnder Linux, all the devices are filesDriver Bus Model 2.4 2.6 (TRUE) Support PnPExt3 ext2 vfat File Management system----> Driver Development under the driver bus modelMemory managementProcess l
Programmers are lazy, you know.
Recently in development, you need to use the server's IP and Mac information. But the server is installed on the Linux system, for the multiple network, in the acquisition of IP generated a lot of problems. The following is a method for Java to obtain a local IP on a Windows system. Paste Code:
Package com.herman.test;
Import java.net.InetAddress;
/**
* @see get computer IP
* @author herman.xiong
* @date May 16, 20
von Neumann architectureCore Ideas1. Von Neumann is: The digital computer system is binary; the computer should be executed in the order of the program.2. The binary system is used as the basis of computer numerical calculation, and 0 and 1 represent the value. The binary system makes it easy for the computer to calculate the numerical value without using the decimal counting method commonly used by humans.3. The sequence of procedures or instructions, that is, pre-programmed, and then handed to
1.The number of files in/usr/include/Linux and/usr/src/Linux/include/Linux is notThe number of folders varies. For example, the/usr/include/Linux does not have the mosules folder, while the/usr/src/Linux/include/LinuxThis folder is available.
/Usr/src/
Summary of the basic operations of Linux, basic operations of linux
Preface
Linux was a UNIX-compatible operating system developed in 1991 and can be used for free. Its source code can be freely transmitted and can be modified, enriched, and developed by anyone, the original intention of developers is to jointly create a perfect, ideal and free-to-use operating s
assembly code, many programmers think it is too obscure, no relationship, on the Linux platform you can also use the Intel format to write assembler, suggest or stick to it, after all, under the Linux T is the mainstream language format:Example 2. Intel format
; Hello.asmsection. data; Segment DeclarationMSG db "Hello, world!", 0xA; string to outputLen Equ $-msg; string lengthsection. Text; co
Document directory
I. Linux operating system source
Ii. Basic Linux knowledge
Iii. Introduction to C Programming in Linux
This article is original and must be reproduced with the following source:Http://blog.csdn.net/qinjuning
Starting from today, I made up my mind to step into the Linux Hall step by step. Wh
Linux Directory Architecture
/root directory
/bin commonly used commands binary file's catalogue
/boot store files that must be read when the system is started, including the core (kernel)
/boot/grub/menu.lst Grub Settings
/boot/vmlinuz kernel
RAM Disk required for/BOOT/INITRD core decompression
/dev System Peripheral Equipment
/ETC System Related setup file
/etc/dir_colors Set Color
/etc/hostname set the user's node name
/etc/networking only yes indi
New users talk about Linux, new users linux
Directory:
What is Linux?
Differences between Linux and UNIX
Comparison between Linux and Windows
What is the Linux release?
Linux applicatio
Interrupt nesting:
In the Linux kernel, if the driver is not specified when applying for a registration interrupt, do_irq enables the interrupt when responding to the interrupt, if the interrupt processing function of the driver is being executed and the interruption of the same device or different devices occurs, the new interrupt will be handled immediately or pending, wait until the current interrupt is processed.In the 2.4 and 2.6 kernels, is ther
for the files you have browsed, export your commands to files, and a series of other great options. You can useman fbiTo view the complete list of options.
CMatrix terminal screen saver
The Matrix screensaver is still one of my favorite Screensaver (2), second only to bouncing cow. CMatrix can be run on a terminal. To run it, just entercmatrixAnd then you can useCtrl+CTo stop running. Runcmatrix -sThe screen saver mode is enabled. In this way, press any key to exit directly.-CYou can set the co
Reference:"Linux kernel design and implementation"0 SummarySystem call process for Linux:The hierarchy is as follows:User program------GT;C library (i.e. API): INT 0x80----->system_call-------> System invoke Service Routines--------> Kernel programsFirst of all, we often say that the user API is actually a system-provided C library.The system call is implemented through the soft interrupt instruction int 0x80, and this INT 0x80 directive is encapsulat
0. Most commonly used Pstree:[Email protected] temp]# Pstree-a|grep Multe| | '-multepoolser| | '-multepoolser| | ' -2*[{multepoolser}]1. > TopAll system processes can be displayedPress U, and then enter the appropriate execution user name, such as TomYou can see all the processes that Tom user started and the corresponding PID2. > Pstack pidYou can see the running state of each thread under this PID,[[email protected] multepoolserver]# pstack 14944 (PID number of the process)Thread 2 (thread 0x4
[Linux Device Driver] linux address type, linux Device address type
List of address types used in Linux:
User virtual addresses)
The normal address visible to the user space program. The virtual address length is 32-bit or 64-bit. It depends on the underlying hardware architecture. Each process has its own virtual addr
[Linux] linux Command learning-netstat, linux-netstat
Many linux services are related to the network. When the service cannot be called, the startup port is occupied, or the firewall is blocked, you need to query network problems, the netstat command only uses one or two parameters.
Common options:
-A (all) shows
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.