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 4798main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9552main() { 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 11214#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
1 4587Post New Vector India Interview Questions
Where is .exe located?
what is the soft starter principle? how is connection diagram? what is the procedure for checking the connection?
What is the use of disp parameter?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
what is the method deposit of wct in Delhi
What is complete binary tree and almost complete binary tree?
Which scientist made detailed study on novae?
What is mdb and what is the special feature of that?
Why are lng pipes curved?
What are the static diagrams in UML?
What are the different types of mode (run code) in call transaction method?
Who is the author of angular js?
Who is the mother of computer?
How to redirect user with flashed session data in laravel?
Is Mapreduce Required For Impala? Will Impala Continue To Work As Expected If Mapreduce Is Stopped?