| Reply | « Previous Thread | Next Thread » |
|
I have two thread excutes same code...so I made the method "synchronized". like this
public synchronized void doSomething(int var) {}; two thread: 1 is the user interaction thread... another is a timer simulating thread... and this works well on other platforms..but on series 40, for example, 6610 & 6100, the program seems to be very easy to deadlock and stop responsing...is it a bug or any solution to this? |
|
I've had deadlocking problems using sync. methods on my 6100... deadlocks where I think it should not be possible. So either there's a problem, or I'm less talented than I like to think (both seem equally likely).
I fixed it only by using a single-threaded approach, or not using synchronized methods. I have had more success when using synchronized block (like synchronized (object) {}). |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|