EmbLogic's Blog

Author Archives: pardeepkakash

difference b/w printf ,fprintf,snprintf and sprintf

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

Posted in Uncategorized | Leave a comment

about /proc

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

Posted in Character Driver, Device Drivers | Leave a comment

Linux kernel,device driver and some modules

Posted in Device Drivers | Leave a comment

character driver connection

Posted in Character Driver | Leave a comment

difference between threaad and a process

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

Posted in Uncategorized | Leave a comment

thread using fifo with three client and three processing

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

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Whether Linked List is linear or Non-linear data structure?

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..

Posted in Data Structures with C | Leave a comment

about ipc

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

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

What is the difference between Storage structure and file structure?

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.  

Posted in Data Structures with C | Leave a comment

DIFFERENCE BETWEEN NULL ARRAY AND EMPTY ARRAY

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

Posted in Data Structures with C | Leave a comment

Creating pipes in C language

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

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

Introducation Interprocess Communication (IPC), Pipes

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

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

semaphore

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

Posted in Uncategorized | Leave a comment

main role dhcp at server

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

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

about dhcp……

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

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