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 4759main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9515main() { 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 11140#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
1 4563Post New Vector India Interview Questions
What is the purpose of the '.myi' file extension? What do thes file contain?
What is latching current in scr?
What are the PeopleSoft components for the Web Server?
What is a pragma?
Enlist the advantages of normalizing database.
What is the power factor of an alternator at no load?
What is xml data in word?
What are the transport schemes supported by wcf? Give example of address for each scheme.
What is service providers in laravel?
What mechanism does java use for memory management?
What is the use of isset() in php?
Is php still relevant 2019?
What is the difference between primary key and unique key and foreign key in oracle?
Explain does the web browser control share the ie cache?
How can I sort items in a ListBox in WPF?