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 4920main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9688main() { 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 11454#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4724Post New Vector India Interview Questions
How may types of defects identify application or your currently working application?pls give me answer..
What is sorting and classifying?
What is 'cheap money'?
Is it ok to delete downloaded program files?
What is the current stable version of typescript?
What is the sfc command?
What do cores and threads mean?
What is category and class extension?
What is hybrid foundation?
What role does explainability play in mitigating bias?
Which type of server technology is used by joomla?
What is the function of model in mvc architecture?
what is the best way to set up the transfection?
What is the size limitation for an access database?
What are the differences between flex 3 and flex 4?