what is multitherading

Answer Posted / john noah

In a single threaded system program executes in a sequence
line by line. Multithreaded system can allow multiple
threads to execute a program parallel in multiple instances.

If there is any part of code dealing with the object data
modification, there is no guarantee that it will not be
attempted any more than one thread at a time.

there's a need to make sure that such kind of code should be
executed exclusively. To achieve this in Java we a concept
of LOCK. Using Lock mechanism thread holds complete hold on
an object and object is also can not be access any other
thread except the thread holding that lock. Lock is an
object level control and one thread only can hold it at a time.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why static functions are used?

570


What is getkey () in java?

576


What does main method?

566


What do you mean by order of precedence and associativity?

546


What is the byte range?

582






how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1667


What is bitwise complement?

502


Why we do exception handling in java and how many types of exceptions are there?

547


Explain wrapper classes in java?

534


What is the use of put method?

516


Is static a singleton?

527


Explain oops concepts in detail?

576


What is the purpose of a volatile variable?

559


What is number data type?

532


What is a literal coding?

513