What is race condition ?? (Threading concept) TCS 2 sept10

Answer Posted / suj

Race conditions
: Threads can try to update the same data structure at the same time.
The result can be partly what one thread wrote and partly what the other thread wrote.
This garbles the data structure, typically causing the next thread that tries to use it to
crash.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a for loop work java?

646


What is synchronization and why is it important in java programming?

566


What is string manipulation?

593


What about interthread communication and how it takes place in java?

655


Why are the destructors for base class and derived class called in reverse order when the program exits

1822






What is difference between this and super keyword?

619


What is a class component?

720


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

1693


Difference between class#getinstance() and new operator ?

754


Can each java object keep track of all the threads that want to exclusively access it?

622


How do you create a bulleted list?

665


What is methods in java?

629


What is difference overloading and overriding?

685


What are access specifiers in java ?

683


What is the final keyword in java?

649