Give examples of how memory leaks can occur with C programs?
Answer posted by sonal on 2005-06-08 08:15:23: a memory leak occurs when mem is allocated but never freed . Leakes can b caused by using malloc() without using any free(). but leaks can also be caused if a pointer to dynamically allocated memory is delleted overwritten , it can be caused when allocated...
What type of scheduling is used in UNIX?
Multi level Round Robin Scheduling algorithm
Multi Level Feedback Queue Scheduling with each queue in round robin
Explain difference between ipc mechanisms?
PIPE: Only two related (eg: parent & child) processess can be communicated. Data reading would be first in first out manner.Named PIPE or FIFO : Only two processes (can be related or unr...
ipc mechanisms are mianly 5 types1.pipes:it is related data only send from one pipe output is giving to another pipe input to share resouses pipe are useddrawback:itis only related process only commun...
What are the differences between shared and dynamic libraries?
system allow us to create and use two kinds of libraries - static libraries and shared (or dynamic) libraries.shared and dynamic libraries are one and the same. the object files from the dynamic(shared ) library are not inserted into the executable file unlike static lib...
: There are two ways in which a library is shared. Static and dynamic In statically linked library the code of library is referenced at compile time and the result executable will be bigger....
If you want to migrate a 32 bit application to a 64 bit os, what all would you check?
I am assuming the question is - port 32 bit appl to 64 bit os.This can a simple checklist of things one can check for -1. Int, long will be 64 bits so care should be taken to see if there are any comp...
sir can anybody tell me whats the answer fo this question in the comment title box
The former example explains dangling pointers which are a form of leaked memory. In book terms though, the former explanations are more true. Any memory malloc'd or new'd in C++ and not free'd or de...
Memory leak example occurs when a developer allocates memory, assigns it to a pointer, and then assigns a different value to the pointer without freeing the ...