Thread operations include thread creation, termination, synchronization (joins,blocking), scheduling, data management and process interaction. A thread does not maintain a list of created threads, nor does it know the thread that created it. All threads within a process share the … Continue reading
The POSIX thread libraries are a standards based thread API for C/C++. It allows one to spawn a new concurrent process flow. It is most effective on multi-processor or multi-core systems where the process flow can be scheduled to run … Continue reading
The msgget() function initializes a new message queue: int msgget(key_t key, int msgflg) It can also return the message queue ID (msqid) of the queue corresponding to the key argument. The value passed as the msgflg argument must be an … Continue reading
RCS file: fifoserver.c,v 3 Working file: fifoserver.c 4 head: 1.4 5 branch: 6 locks: strict 7 root: 1.4 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 4; selected revisions: 4 12 description: 13 client1 had … Continue reading
2 RCS file: fifoserver.c,v 3 Working file: fifoserver.c 4 head: 1.3 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 3; selected revisions: 3 11 description: 12 client1 had open the … Continue reading
A FIFO special file (a named pipe) is similar to a pipe, except that it is accessed as part of the filesystem. It can be opened by multiple processes for reading or writing. When processes are exchanging data via the … 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 ranging … Continue reading
Semaphores are a programming construct designed by E. W. Dijkstra in the late 1960s. Dijkstra’s model was the operation of railroads: consider a stretch of railroad in which there is a single track over which only one train at a … Continue reading
2 RCS file: bitfield.c,v 3 Working file: bitfield.c 4 head: 1.1 5 branch: 6 locks: strict 7 root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1; selected revisions: 1 12 description: 13 bits … Continue reading
1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.1 5 branch: 6 locks: strict 7 root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1; selected revisions: 1 12 description: 13 … Continue reading
implemented interprocess communication using pipes.
I have used malloc function in linklist for allocating dynamic memory to the pointers.In linklist nodes are at random locations.