Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is advantage of using threads?

Answers were Sorted based on User's Feedback



What is advantage of using threads?..

Answer / rajashree

a)lower context switching over head.

b)shared state:
allowed concurrent instance of the server to communicate
easily with each other

c)linux supports the POSIX thread standard
i)pthreads library.
ii)portable across most unix platform.

Is This Answer Correct ?    9 Yes 0 No

What is advantage of using threads?..

Answer / yayati pavan kumar

Threads means part of a program which is in execution.That
means it's very easy to implement any large and complex
application by partitioning into threads. By this we can
save memory or storage.

we can decrease time of execution
It is very easy to test as the whole code partitioned into
parts and execute

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More Core Java Interview Questions

2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

0 Answers   RBS, TCS,


What is an empty string in css?

0 Answers  


How to print an arraylist in java?

0 Answers  


What is a two-pass assembler?

0 Answers   Syntel, Visa,


If your team member writes code with lots of static variables and static methods, will it cause any side effects?

3 Answers   KPIT,






What is natural ordering in java?

0 Answers  


define the terminology association.

0 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


What is difference between module and function?

0 Answers  


Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types

4 Answers   TCS,


what is the diff between Servletcontext and servletconfig?

5 Answers  


Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.

3 Answers  






Categories