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
How does a for loop work java?
What is synchronization and why is it important in java programming?
What is string manipulation?
What about interthread communication and how it takes place in java?
Why are the destructors for base class and derived class called in reverse order when the program exits
What is difference between this and super keyword?
What is a class component?
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.
Difference between class#getinstance() and new operator ?
Can each java object keep track of all the threads that want to exclusively access it?
How do you create a bulleted list?
What is methods in java?
What is difference overloading and overriding?
What are access specifiers in java ?
What is the final keyword in java?