Tài liệu Advanced Linux Programming: 5-Interprocess Communication pptx
... 5/22/01 10:22 AM Page 109 110 Chapter 5 Interprocess Communication 5.4 Pipes A pipe is a communication device that permits unidirectional communication. Data written to the “write end” of the ... specify three parameters: communication style, namespace, and protocol. A communication style controls how the socket treats transmitted data and specifies the number of communication part...
Ngày tải lên: 26/01/2014, 07:20
... VISIT ON THE INTERNET to learn more about programming for the GNU /Linux system. D.1 General Information n http://www.advancedlinuxprogramming.com is this book’s home on the Internet. Here, you ... information about pro- gramming GNU /Linux. The same information can also be found at http://www.newriders.com. n http://www.linuxdoc.org is the home of the Linux Documentation Project. This sit...
Ngày tải lên: 21/01/2014, 07:20
... GNU /Linux system in certain ways. GNU/ Linux provides other ways for interacting with the operating environment, too. 03 0430 CH02 5/22/01 10:20 AM Page 17 36 Chapter 2 Writing Good GNU /Linux ... guidelines presented, you’ll be able to write programs that work well within the GNU /Linux environment and meet GNU /Linux users’ expec- tations of how programs should operate. 2.1 Interacti...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: A-Other Development Tools pdf
... 277 Other Development Tools A DEVELOPING CORRECT, FAST C OR C++ GNU /LINUX PROGRAMS requires more than just understanding the GNU /Linux operating system and its system calls. In this appendix, we ... determine the currently executing function.These samples determine function execution times. Because Linux s clock ticks are 0.01 seconds apart, these interruptions occur, at most, every 0.01...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: B Low-Level I/O docx
... I/O B CPROGRAMMERS ON GNU /LINUX HAVE TWO SETS OF INPUT/OUTPUT functions at their disposal.The standard C library provides I/O functions: printf, fopen, and so on. 1 The Linux kernel itself provides ... descriptor may cause Linux to take a particular action, depending on the nature of the file descriptor. For example, when you close a file descriptor for a network socket, Linux closes...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: C Table of Signals ppt
... following: % man 7 signal Table C.1 Linux Signals Name Description SIGHUP Linux sends a process this signal when it becomes disconnected from a terminal. Many Linux programs use SIGHUP for an ... in /usr/include/sys/signum.h, which is included as part of <signal.h>. For a full list of Linux signals, including a short description of each and the default behavior when the signal...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: E Open Publication License doc
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming:F GNU General Public docx
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 1-Advanced UNIX Programming with Linux pdf
... 0430 CH01 5/22/01 10:19 AM Page 16 Advanced UNIX Programming with Linux I 1 Getting Started 2 Writing Good GNU /Linux Software 3 Processes 4 Threads 5 Interprocess Communication 01 0430 PT01 5/22/01 ... page is outdated. To help you navigate, here are the most useful sources of information about advanced Linux programming. 6. Some people have commented that saying break main is a l...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 3-Processes pdf
... methods discussed in Chapter 5, “Interprocess Communication, ” but fortunately Linux does this for you, using signals. When a child process terminates, Linux sends the parent process the SIGCHLD ... special type sig_atomic_t. Linux guarantees that assignments to variables of this type are per- formed in a single instruction and therefore cannot be interrupted midway. In Linux, sig_a...
Ngày tải lên: 26/01/2014, 07:20