Preface: how feeling Linux and Linux systems operation and maintenance experimental nothing? This does not or will not (@@). Several experiments recorded about it.
Benpian catalog:
Experiment a programming environment
Experiment two file read and write
Third experiment process communication
Experiment a programming environment √
Experimental Step 1: Write a program in the Linux operating system, to achieve the output "Hello World" in the bash.
Experimental Step 2: preparation of a program input a set of data, the average value of the output data. (Have the header file, there AVE function declaration)
Experiment Step 3: Step 2 in the averaging function is worth AVE package to generate a dynamic and static libraries, and call in the main.c.
Experiment Step 4: Write the makefile these two programs, compiled by the make command.
The second experiment file read and write √
Experimental Step 1: Write a program that, when called with two parameters. After running in the file directory has a file named parameter 1, and the contents of the file is a parameter 2. (main functions and file read and write tests with parameters)
Third experiment process communication √
Experimental Step 1: Write a program to realize the communication between parent and child. Requirements: Everyone 3s parent process to send and print a "Hello-n" message to the child process, n from 0 increments. Child process the parent process receives a message printed on this news. (When the program is stopped by pressing Ctrl + C)