Pipes support half duplex communication. But if we want full-duplex communications we should use two pipes between two processes. Is such situation can leads to deadlock? Write two scenarios that could leads to deadlock in such situations?
1 4849main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9602main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 11310#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4636Post New Vector India Interview Questions
How do I find my hidden files?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
What is the destroy method?
Can excel send notifications?
What is the difference between systemd and upstart?
What are the differences between chemical and electrochemical corrosion? : Electrochemistry Corrosion
What is sap data services designer? What are main etl functions that can be performed in designer tool?
What are the different lift augmentation devices present?
How do I make margins visible in word 2016?
Name the different creational patterns in object oriented design?
What is abstract class constructor called?
root tree will find which is server job and which is parallel job?
What is a primary index?
What is difference between select & select firstonly statements?
What are the linux commands used in devops?