printf, fprintf, sprintf, snprintf C File input/output Defined in header <stdio.h> (1) ?int printf( const char *format, … );? ?int printf( const char *restrict format, … );? (2) int fprintf( FILE … Continue reading
The Linux kernel has two primary functions: to control access to physical devices on the computer and to schedule when and how processes interact with these devices. The /proc/ directory — also called the proc file system — contains a … Continue reading
Following are some of the major differences between the thread and the processes : Processes do not share their address space while threads executing under same process share the address space. From the above point its clear that processes execute … Continue reading
server head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.06.12.18.58.04; author root; state Exp; branches; next ; desc @three client used into server1. @ 1.1 log @Initial revision @ client1 head 1.1; access; symbols; locks … Continue reading
Logically linked list is a linear data structure because each node has a link to its next one. but physically it is not necessarily true because memory allocation to nodes may or may not be sequential..
Ipc mechanisms are mianly 5 types 1.pipes:it is related data only send from one pipe output is giving to another pipe input to share resouses pipe are used drawback:itis only related process only communicated 2.message queues:message queues are un related … Continue reading
The representation of a particular data structure in the memory of a computer is called a storage structure whereas a storage structure representation in auxiliary memory is often called a file structure.
null array—-when the size of array is not declared than the array is known as null array. EMPTY ARRAY——-if an array having the size but not values than it’s known as empty array. EX = null array b[]; empty array … Continue reading
Creating “pipelines” with the C programming language can be a bit more involved than the simple shell example . To create a simple pipe with C, we make use of pipe(), open() and close() system calls. However there is a … Continue reading
We have now began to see how multiple processes may be running on a machine and maybe be controlled (spawned by fork() by one of our programs. In numerous applications there is clearly a need for these processes to communicate … Continue reading
ead 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.05.14.23.41.10; author root; state Exp; branches; next ; desc @semaphore with semget,semctl,semop. @ 1.1 log @Initial revision @ text @#include<stdio.h> #include<linux/sem.h> #include<stdlib.h> int main() { int i,aa,aaa; … Continue reading
DHCP is an Internet Engineering Task Force (IETF) standard designed to reduce the administration burden and complexity of configuring hosts on a TCP/IP-based network, such as a private intranet. Using the DHCP Server service, the process of configuring TCP/IP on … Continue reading
The Dynamic Host Configuration Protocol is used by computers for requesting Internet Protocol parameters, such as an IP address from a network server. The protocol operates based on the client-server model. DHCP is very common in all modern networks[1] ranging … Continue reading