Linux select System Call _ 1, select System Call _ 1
SYNOPSIS /* According to POSIX.1-2001 */ #include
DESCRIPTION select() allow a program to monitor multiple file descriptors, waiting until one or more of the file descriptors become "
System Call (2): System Call
(5) implementation of system calls
1: Implement system calls
Implementing a system call is to consider its purpose. Each system call has a definite purpose, in Linux, multi-purpose system calls are no
implement the Linux kernel.
1. Create the Interrupt Descriptor Table IDT
Because the interrupt is used, the Interrupt Descriptor Table IDT must be created first, for example:
In the head. s file, you have created an IDT. For example, if you want to use int 0x80, run the code from the point where _ idt starts to locate the offset 0x80.
. Align 3 # align the memory address boundary in 8 bytes. _ Idt:. fill 256, 0 # idt is uninitialized #, 8 bytes for
Atitit Cache Caching Path Attilax Etti Summary
1. Purpose of using caching (using cache) 1
1.1.1. Reduce the burden on the database by achieving the target 1
1.2. Speed up the query 2
2. Common parameter expiration time of the cache (seconds
System Call (1), System Call (
(1): communication with the kernel
The system call adds an intermediate layer between the user space and the hardware device. This layer has three main functions:
1. It provides a hardware abstract
Third-party call (1), third-party call (
Third-party call function description:
The third-party call function allows a user to call a third party without interrupting the call, the
;}CCall::~CCall(){}int CCall::Call(int arg1, short arg2, char arg3, void *arg4){int var1;short var2;char var3;int *p;var1 = arg1;var2 = arg2;var3 = arg3;p = (int *)arg4;*p = m_Var1;return 0;}There are also portals and global functions:
// Main. cpp... # include
Next we will look at the call process in DEBUG. Note that if it is VS. NET, a DWORD will be added before and after each variable during VC comp
C language function call 17-recursive method call of general functions (2), 17 Recursion// Recursion/*========================================================== ======================================Question: F (60). F (n) is defined as follows:F (0) = 0;F (1) = 1;F (2n) = f
Recursive method/*==================================================================Title: F (60), where F (n) is defined such as the following:F (0) = 0;F (1) = 1;F (2n) =f (n) +3;F (2n+1) =f (n) +f (2n-1).==================================================================*/#include Double F (int n){if (n==0) return 0;
HTML call servlet (1), html call servlet1. Data forms on the page
Before using Servlet to process user requests, prepare a page to provide data forms. The data form is the
Add.html
2. Add data
One of the advantages of Servlet is that it can easily obtain data in the form. Add the following code using JDBC technology i
clicks.
13. Display System Time
# Date
After Windows is shut down, the time will be normal, because there is a network time server (via NTP network time protocol) in Windows, and RTC (real time click) reads the current time at the beginning of Linux.
# Date is the system time
# Clock is the hardware time, or # hwclock
Note: The running time is, but my system time and hardware time are incorrect.
14. How to obtain the command and use help.
Internal COMMAND # help COMMAND, such as # help
QML ranges from 1 to 2, and qml ranges from 1 to 2.
As the project goes deeper, it needs to be transplanted to Android. The problem is that QML Android is compatible!
Fortunately, the PC-side program is similar to the cell phone screen width ratio. Although the unit pixels and sizes are different, you can use proportio
System Call (2)
(5) implementation of system calls
1: Implement system calls
Implementing a system call is to consider its purpose. Each system call has a definite purpose, in Linux, multi-purpose system calls are not recommended (a system
, type2, arg2, type3, arg3, type4, arg4)
The
Code 11 ::
# DEFINE _ syscall5 (type, name, type1, arg1, type2, arg2, type3, arg3, type4, arg4,
Type5, arg5)
The
Code 12 ::
# DEFINE _ syscall6 (type, name, type1, arg1, type2, arg2, type3, arg3, type4, arg4,
Type5, arg5, type6, arg6)
_ Res );
From this code, we can see that int $0x80 is used to trigger the system call through a soft disconnection. When a call oc
situations, there is a difference isEXIT/1 does not bring the stack trace information that is called (it is easier for other processes to exit without having to take very large call information, lighter). But ERROR/1 will take.Catch exit (test). {' EXIT ', test}catch error (test). {' EXIT ', {test,[{erl_eval,do_apply,6, [{file,' Erl_eval.erl '},{li
System Call (1)
(1): communication with the kernel
The system call adds an intermediate layer between the user space and the hardware device. This layer has three main functions:
? 1: does it provide a hardware abstract interface for the user space?
19.1 method call
Java provides two basic methods: the instance method and the class (static) method. The difference between the two methods is:
1) An instance is required before the instance method is called, but the class method is not required.
2) The instance method uses dynamic binding, while the class method uses static binding.
When a Java Virtual Machine c
) V # const/16 V2, 0x0 # invoke-virtual {P0, V2 }, lcom/Android/phone/callcard;-> setpersoninfostyle (z) V Goto: goto_0.end Method
6. Description of the preliminary Modification========In addition to the plug-in code in steps 2 and 3, the entire function depends on a fully handwritten showcachedbackground (). It needs to operate on the current callcard class
CallCard.InCallScreen.mMainFrame
Member. The Member is declared as private in the incallscreen
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.