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 4849main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9604main() { 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 11313#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4637Post New Vector India Interview Questions
how can we direct the sql generated to use a specifc table?
What is the difference between 2 types of servlets?
Since pepsin is a gastric enzyme does it, has acid or basic optimum ph? What happen to pepsin when it passes to the duodenum?
What are the characteristics of the category?
Give me an example of a time when something you tried to accomplish and failed.
What is Delimited data?
What steps do you take to ensure AI fairness in your projects?
Explain sales document blocking?
What is the difference between the sun jvm and bea jrockit jvm?
Is c++ pass by reference or value?
What are the different types of permanent license keys in the hana system?
What is the difference between == and === in php?
how can i find cable size from current rating?
What are your traits that are in line with the company's mission statement?
What is difference between engineering stress and true stress?