
there are two threads running at a time.. when am updating a values in database. both thread halt and stop for moment till it get updated into database... so i dnt want thread to get halts for tht moment of period. whats solution for it

Hi,
If your code the accessing the same function then you should avoid the dead lock.
You can use the synchronize block to prevent the current access to the same code.
synchronized(this){
//Your database access code here.
}
If your database updates takes the long time then the code block at particular line of code will wait for the updates to be completed. You can't skip the update and run the code blow.
If you you provide us more details we will may suggest you better solution.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.