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 4753main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9512main() { 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 11133#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
1 4560Post New Vector India Interview Questions
If you run hive as a server, what are the available mechanism for connecting it from application?
Explain about Message routing and content routing?
Describe the diffeerence between inline and code behind?
Difference between debit card and credit card
which Electrical items is Exciseible
What do you understand by mixin or higher order components in reactjs?
What does none mean in python?
Why set do not allow duplicates in java?
what factors should be kept in mind in selecting HCN?
What are the default margins in word 2013?
What do you mean by “streams”? What are the different types of streams in node.js?
What are the functions of the personnel administration module?
How has technology effected the way that we receive news
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is service providers in laravel?