EmbLogic's Blog

Author Archives: sahilchugh0777

Role Of Device Driver

As a programmer, you will be able to make your own choices about your driver, choosing an acceptable trade-off between the programming time required and the flexibility of the result. Though it may appear strange to say that a driver … Continue reading

Posted in Uncategorized | Leave a comment

Inter-Process Communication with Sockets

Inter-Process Communication with Sockets Client-Server Model A standard model for distributed applications is the client-server model. A server is a process that is waiting to be contacted by a client process so that the server can do something or the … Continue reading

Posted in Uncategorized | Leave a comment

Introduction To Threads

A thread of execution is often regarded as the smallest unit of processing that a scheduler works on. A process can have multiple threads of execution which are executed asynchronously. This asynchronous execution brings in the capability of each thread … Continue reading

Posted in Uncategorized | Leave a comment

Device Drivers Inroduction

One of the purposes of an operating system is to hide the peculiarities of the system’s hardware devices from its users. For example the Virtual File System presents a uniform view of the mounted filesystems irrespective of the underlying physical … Continue reading

Posted in Uncategorized | Leave a comment

DEVICE DRIVER

Character Device Driver: In order to create a link between your device means your hardware either it is internal or externally attached and user application we need a set of rules which will define how your concerned device shall deal … Continue reading

Posted in Uncategorized | Leave a comment

Major and Minor Numbers

Char devices are accessed through names in the filesystem. Those names are called special files or device files or simply nodes of the filesystem tree; they are conventionally located in the /dev directory. Special files for char drivers are identified … Continue reading

Posted in Uncategorized | Leave a comment

what is bash ?

Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for the ‘Bourne-Again SHell’, a pun on Stephen Bourne, the author of the direct ancestor of the current Unix shell sh, which … Continue reading

Posted in Uncategorized | Leave a comment

Difference between physical addressing and virtual addressing concept

up vote 8 down vote accepted Physical addressing means that your program actually knows the real layout of RAM. When you access a variable at address 0x8746b3, that’s where it’s really stored in the physical RAM chips. With virtual addressing, … Continue reading

Posted in Uncategorized | Leave a comment

Output of following program?

int main() { static int i=5; if(–i){ main(); printf(“%d “,i); } } answer is 0000

Posted in Uncategorized | Leave a comment

What is the diffrence between single quoted and dauble quoted declaration of char array

In C/C++, when a character array is initialized with a double quoted string and array size is not specified, compiler automatically allocates one extra space for string terminator ‘?. For example, following program prints 6 as output. #include int main() … Continue reading

Posted in Uncategorized | Leave a comment

Write a C Programme that does not terminate when Cntrl+C is pressed

Write a C program that doesn’t terminate when Ctrl+C is pressed. It prints a message “Cannot be terminated using Ctrl+c” and continues execution. We can use signal handling in C for this. When Ctrl+C is pressed, SIGINT signal is generated, … Continue reading

Posted in Uncategorized | Leave a comment