/** Use fork to copy a new process*/Void fork_progress (){Pid_t result;Result = fork ();/* call the fork function. The returned value is included in the result variable */Int newret;If (result =-1)/* determines the return status of the fork function
On New Year's Day in 2013, there was no holiday because the project had to work overtime. However, in the past few days, the web system suddenly experienced a serious exception...
System development and testing are basically over, waiting for
The Select system call enables our program to monitor the State Changes of multiple file handles (file descriptor. The program stops at select and waits until one or more of the monitored file handles change their status.
There are a lot of files in
What is asynchronous communication?A message can be sent by any communication party. When a message is sent, the system prompts you to receive the message.
The select function is used here. The procedure is as follows:1. Set a collection variable to
1.decompress tar.bz2
Tar jxvf android-ndk-r5c-linux-x86.tar.bz22. the Linux IP Address can access the domain name and cannot be accessed.
VI/etc/resolv. conf
Add,
Nameserver 202.106.46.1513. Install the Deb file in Linux
Sudo dpkg-I ibus-sogoupycc_0.
Some commands that I think are good at using. This article is designed to collect commands like this to learn and remember, and to share it with you.
Latest Update: http://blog.csdn.net/Vange/archive/2010/03/27/5423671.aspx
Last Updated: 2010-03-27
Work requires the Windows2003 FileSynchronize to the Linux system. Here I will record the specific configuration;
Here, we only configure file synchronization for windows --> Linux. In fact, the replication is more accurate here;
1. Install the
Daemon for Linux QT applications
Requirement: when we want to restart the application immediately after it is accidentally closed or aborted, we need the daemon to help.
P.s.: no virus, no virus ......
Implementation Scheme
1. Start the daemon first2
# Include /* file preprocessing, including the CHMOD function library */# Include /* file preprocessing, including the CHMOD function library */# Include Int main (INT argc, char * argv []){
Struct stat Buf;/* various attributes of the file, such as
Grep: G (globally) Search for a RE (Regular Expression) and P (print) the results.
1. parameters:-I: case insensitive-C: print the number of matched rows.-L: searches for matching items from multiple files.-V: searches for rows that do not contain
Sort is a commonly used command in Linux. It manages sorting and focuses on sort in five minutes. Start now!
1. How sort works
Sort compares each row of a file as a unit. The comparison principle is to compare the lines from the first character to
By Sam (zhufeng) sam_code@hotmail.com
Sam needs to check the USB mouse code in 2.6 kernel. By the way, let's talk about the relationship between makefile and kconfig files in the kernel and how they can be used together.
Background:Background 1:
Linux programming environment time and date type timeval and related APIs
The concepts of "time" and "date" mainly include the following:
Coordinated Universal Time (UTC): coordinates the Universal Time, also known as the world standard time,
Network-related information on hosts required by network applications generally includes: hosts, networks, protocols, and services. In this information, the host and network information can be obtained either through the Domain Name System (DNS) or
A constantly raised question: where should JDK be installed in Linux?
1. Linux directory structure
Even if this is a cainiao-level problem, it is often difficult for the old bird. I have seen many senior programmers install JDK IN THE/home directory
In-depth understanding of Linux I node (inode)
Most UNIX operating systems have V nodes. But for Linux, there is only a general I node, but no v node.
Next we will discuss the I nodes in Linux.
In Linux, file search is not based on the file
Linux Network Programming-TCP status change
As shown in the figure above, TCP has a status of 11. data sent and received by TCP includes ACK, FIN, Syn, and RST. for a client that has not called Connect and a server that has not called
1. Check the processPs command to find the process-related PID:Ps a shows all programs under the current terminal, including those of other users.PS-A shows all programs.When listing programs in ps c, the real command name of each program is
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