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 4101main() { 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 9633#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 3738Post New Vector India Interview Questions
what is cbp? What is the difference between cbp and mrp?
Can we install two different peopletools version on same machine ie client, if yes , what oracle configuration should be installed?
Is php coding easy?
Why do we need Sessions?
What is pangolin?
How are the elements of a gridbaglayout organized?
how can you describe yourself
How many instances of a jobtracker run on hadoop cluster?
How can you avoid importing tables one-by-one when importing a large number of tables from a database?
What kind of problems lend themselves to machine learning?
Which is the landing craft used by armstrong on the moon?
What is hashset c#?
What is a .exe game?
Define resonant frequency?
how may join possible between (requisition with purchase order)