EmbLogic's Blog

Category Archives: Uncategorized

srand &rand

please tell how rand & srand function work.

Posted in Uncategorized | Leave a comment

receiver of message queue..

? RCS file: mes_rc.c,v Working file: mes_rc.c head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: message queues reciver ….recieve data in string.. =============================================================================

Posted in Uncategorized | Leave a comment

implementation of message queues

? RCS file: mes_que.c,v Working file: mes_que.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: implement message queues for learn it’s working —————————- revision 1.1 locked by: … Continue reading

Posted in Uncategorized | Leave a comment

semaphores

RCS file: ipc_fifoserver.c,v Working file: ipc_fifoserver.c head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: created common fifo for requesting clients(3) implemented semaphore created common result fifo and have send resutl back to their … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Leave a comment

Memory management unit

Allocate available memory efficiently to multiple processes Main functions Allocate memory to processes when needed Protect one process’s memory from another Keep track of what memory is used and what is free. Memory Allocation Contiguous Allocation:Each process allocated a single … Continue reading

Posted in Uncategorized | Leave a comment

Breif Discussion of fork ,pipe and execl.

Process:- Process is execution of set of statements in sequential way. Fork():-It is a system call that create a duplicate process of the process which is evoking the system call(fork). After the fork statement the remaining part of a process … Continue reading

Posted in Uncategorized | Leave a comment

about RCS

RCS (revision control system) is a project management tool. RCS uses a number of commands to manage source file. It works by tracking source file as its changed by maintaining a single file with list of changes in sufficient detail … Continue reading

Posted in Uncategorized | Leave a comment

about RCS

RCS (revision control system) is a project management tool. RCS uses a number of commands to manage source file. It works by tracking source file as its changed by maintaining a single file with list of changes in sufficient detail … Continue reading

Posted in Uncategorized | Leave a comment

PIPE

we can use pipe between two related process only, related means both process has same pid in their past. after that we can read and write the data from any end. To make a related process between two unrelated process, … Continue reading

Posted in Uncategorized | Leave a comment

sum of two distances using struct and functions

access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.25.14.53.42; author root; state Exp; branches; next ; desc @sum of two distances using struct and function @ 1.1 log @Initial revision @ text

Posted in Uncategorized | Leave a comment

DIFF BTWN gets(), fgets(), getc(), fgetc() , getchar(), ungetc().

1. All these functions gets(),fgets(),getc(),fgetc(),getchar(),ungetc() …are function is declared in the header file stdio.h. 2.gets() :-it takes single argument.The argument must be a data item representing a string. gets() doesn’t allow to specify the length of the buffer to store … Continue reading

Posted in Uncategorized | Leave a comment

about RCS

RCS (revision control system) is a project management tool. RCS uses a number of commands to manage source file. It works by tracking source file as its changed by maintaining a single file with list of changes in sufficient detail … Continue reading

Posted in Uncategorized | Leave a comment

pipes

Creating “pipelines” with the C programming language can be a bit more involved than our simple shell example. To create a simple pipe with C, we make use of the pipe() system call. It takes a single argument, which is … Continue reading

Posted in Uncategorized | Leave a comment

linked list

Each element (we will call it a node) of a list is comprising of two items – the data and a reference to the next node. The last node has a reference to null. The entry point into a linked … Continue reading

Posted in Uncategorized | Leave a comment

ipc

In computing, inter-process communication (IPC) is a set of methods for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC methods are divided … Continue reading

Posted in Uncategorized | Leave a comment