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 4100main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 8782main() { 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 9627#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 3736Post New Vector India Interview Questions
What does the option psql -l of PostgreSQL display?
Explain a proof of stake in a simple way?
What is maximum size of array in c?
What is the full name of linux?
What is the effect of using two converging lenses in one optical instrument?
What is the equivalent in BCB to a Pdox TCursor?
Do you have research experience in machine learning?
What is the Default admin port?
Explain how did the moon form?
What is dhtml in javascript?
what are rails filters?
What are different types of instances?
Define passive immunity?
When building a keyword list for a display network campaign, what should you following?
What is the switch activity in uipath?