When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state … Continue reading
int main(void) { char *ptr; ptr = malloc(sizeof(char)*20); printf(“%p\n”, ptr); ptr = “hello”; printf(“%p\n”, ptr); printf(“The sting is %s\n”, ptr); free(ptr); return 0; } Check the above program. Ptr address is different in first and second case. Also free will … Continue reading
Following assignments to complete. 1) Implement lkm in which perform reading writting for multiple quantums. 2) Write two different application, one for reading and one for writting. Make a common node. Writer will write and reader will read. 3) Read … Continue reading
Implememted multiple quantums writing and reading successfully.
struct Node { int data; struct Node *next; }var; int main() { printf(“SIze of struct = %d\n”, sizeof(struct Node)); return 0; } Here it is printing 16. Can someone explain how it is printing 16?