Have you ever used threads?
Answers were Sorted based on User's Feedback
Answer / ramakrishna yechuri
Thread concept is not used for desktop application.
Also u cannot acheive multi-threading by single processor.
Threads are mainly used for serverside programming eg
A server has to sent a single response to many request at
same time
also in devoloping games like bow and arrow.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / roger
yey, problems arrise with the syncronisation of threads,
and sharing data. these are resolved using semophores and
Mutexes.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / yathirajulu
yes, i used in server-side programming and most probably in
real-time scenario in many ways.
chatting,e-mailing,shopping-cart.
Is This Answer Correct ? | 0 Yes | 1 No |
1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage
What is the difference between Home and $Home?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....
What does I oop mean?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
write a C++ program for booking using constructor and destructor.
What is DeadlyDiamondDeathProblem ?
What is polymorphism explain?
What is the difference between inheritance and polymorphism?
is there any choice in opting subjects like 4 out of 7
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.