Inter thread Communication

Inter thread Communication The preceding examples unconditionally blocked other threads from asynchronous access to certain methods. This use of the implicit monitors in Java objects is powerful. but you can achieve a more subtle level of control through interprocess...

Deadlock

Deadlock A special type of error that you need to avoid that relates 'specifically to multitasking is deadlock, which occurs when two threads have a circular dependency on a pair of synchronized objects. For example, suppose one thread enters the monitor on object...

Sometimes, suspending And Stop Threads

Sometimes, suspending And Stop Threads   Sometimes, suspending execution of a thread is useful. For example, a separate thread can be used to display the time of day. If the user doesn't want a clock, then its thread can be suspended. Whatever the case, suspending a...

Using Multi threading

Using Multi threading If you are like most programmers, having multithreaded support built into the language will be new to you. The key to”utilizing this ‘support effectively is to think . concurrently rather than serially. For example; when you have two...