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 4855main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9607main() { 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 11330#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4644Post New Vector India Interview Questions
What is identity mapper and chain mapper?
Can you convert an excel spreadsheet to google sheets?
What is the Difference between Inductive Learning and Analytical Learning in Machine Learning?
what is a role instance ?
what are the different Types of Recordsets.
What is the use of welcome-file-list?
What is the difference between compatibility testing and cross browser testing?
What is worker node in Apache Spark cluster?
Does session expire on closing browser?
What are the difference between backbone.noconflict and backbone.$ ?
What does the alt key do?
How does jdbc driver work?
What is Controller in MVC application?
what is union, minus and interact commands? : Sql dba
what is insdustrial vibration.who it works. give atleast 2 types of insdustrial vibration