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 4759main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9515main() { 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 11140#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4563Post New Vector India Interview Questions
How are the function code handles in flow logic?
Define what is meant by filter?
Explain about leukotrienes and prostaglandins?
What is the meaning of loosely coupled in java?
How does array sort work?
Negative keywords can help advertisers refine the targeting of their ads, and potentially increase in?
Are you willing to relocate? In the future?
why we cannot protect 100% winding of an alternator by using differential protection?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
How do I highlight all tabs in excel?
What is a ternary operator?
Explain me what is the difference between explode() and split() functions?
How to read socket file in linux?
What is a join command?
What is a const pointer?