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 4865main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9612main() { 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 11336#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4649Post New Vector India Interview Questions
Why we select scan range from higer wavelength to lower wavelength in uv visible spectroscopy and ftir spectroscopy ? .
Which is the best module for implementing search in drupal 8?
How would you change old and new values in an insert, delete and update triggers?
What does int [] mean in java?
How to pairing in bluetooth?
Replication causes data redundancy then why is pursued in hdfs?
What is if else statement?
What is area of interest?
explain return tables. How do start routine and return table synchronize with each other?
How to create a simple Website in SharePoint 2013?
What do you understand by sdd and frq?
What is the benifit of Distributed cache, why can we just have the file in HDFS and have the application read it?
What does the keyranges parameter in define cluster command do?
Explain that why C is procedural?
tell us about any technical projects that you have undertaken in the past 3 years?