Thread creation failure in Linux
Write down the problems encountered and record the path of your own TechnologyPthread_detach (pthread_self ())Linux thread execution is different from windows. pthread has two states: joinable and unjoinable,If the
Development language: C ++
Development Framework: QT creator qt4.6.3 version
Development Platform: Red Hat Linux Enterprise 5
Design Philosophy: call China Mobile's Apsara API to send user information to a specified URL, and use Linux curl
1. Sort
Sort by behavior unit based on the specified method and then output it.
Ll | sort-K 5-N indicates that the fifth key is used for sorting, and the count starts from 1.-N indicates that the number order is used, and-D indicates that the
In Linux:
Before sending data using a socket, you can set its attribute to specify the timeout time. The timeout time includes the receiving timeout time and sending timeout time. Assume that the receiving timeout time is set to 2 seconds. You can
1. By default, the CVS server is installed after RedHat is installed. You can also download the RPM package or
Source code Package to install.
2. Create a file cvspserver under/etc/xinetd. D with the following content: Service cvspserver {
Port =
Find a suitable directory in Linux:
Input: git clone git: // source.ffmpeg.org/ffmpeg.git FFMPEG to obtain the FFMPEG source code.
Cd ffmpeg enters its Directory
./Configure -- prefix =/usr/local -- enable-memalign-hack -- enable-shared
Make
I want to play with Linux, so today I plan to install a Linux system in this book. I first want to install ubuntu. It is said that it is very gorgeous, but after half a day, I finally entered the installation interface, the screen burst and I
Copyright statement: original works can be reproduced. During reprinting, you must mark the original publication, author information, and this statement in hyperlink form. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-ma
Compile a kernel module that can be loaded in Linux 2.6 kernel
By:
Wu Yin
Date:
2007-05-18
Email:
Lazy_fox # msn.com
Homepage:
Http://blog.csdn.net/wooin
Link:
Here's a list of 10 commands that may come handy when using the command line in Linux.
Search for all files modified in the last n days containing a specific text in their name
find DIR -mtime -N -name "*TEXT*"
For example:
find ~ -mtime -5 -name
I 've been using Linux for a while. Sometimes I want to see the source code of the LS, Cat, more, and other commands. I couldn't find the source code in the downloaded kernel source code, but I searched the internet, the methods are summarized as
Linux file copy Function
1 /*2 * Copy A (real) file to another (real) file.3 * file can be a regular file or a simlink4 */5 Int create_copy_file (const char * Source, const char * target)6 {7 struct stat src_stat;89 If (lstat (source, & src_
FG, BG, jobs, &, CTRL + Z are all related to system tasks. Although these commands are rarely used, they are also very practical.
I. & Most frequently used
This command is used at the end of a command and can be executed in the background.
II.
Fork function learning:
# Include # Include # Include # Include
Main ()
{
Pid_t PID; pid = fork ();
If (PID
Printf ("error in fork! ");
Else if (pid = 0)
Printf ("I am the child process, my process ID is % DN", getpid ());
Else
Printf ("I am the
Author: Yili Xie yili.xie@gmail.com
Date: 2010-1-25
You are welcome to reprint it. Please indicate the source
Platform device and driversFrom , we can understand the driver model interfaces of platform Bus: platform_device and platform_driver.
After learning about the Assembly before kernel starts, let's take a look at the official C language startup code, that is, our start_kernel function. Start_kernel is quite large, and every function called in it is enough for us to worry about. Here
Many common commands in Linux must be mastered. Here we will share some common basic commands that I learned when I started Linux, and hope to help you.
This is what I sorted out from laruence's book. I hope it will not involve copyright issues.
1.
Set environment variables in Ubuntu
There are three methods to set environment variables in Ubuntu: one for the current terminal, the other for the current user, and the other for all users.:
I. Used on the current terminal:
Enter:Export Path = $
From http://blog.csdn.net/xiaoweibeibei/article/details/6552498
Reference identifier:The reference identifier is an integer that represents the objects (shared memory, semaphores, and message queues) of each sysv subsystem. It is used to access
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