L. P. with Microsoft C# - Level 5-Quiz-2
- A Process is a container which manages system resources.
- Thread is the basic unit of execution in a program.
- You want to give a thread a set of CPU instructions. You use Delegate to accomplish this.
- Sleep() methods of the Thread class will suspend a thread that is executing, for a specific amount of time.
- Suspend() methods you use to suspend a thread if you are using the Resume() method to restart the thread.
- When a thread runs out of work, it naturally dies. Once dead, a thread cannot be restarted.
- Interrupt() methods of the Thread class will kill a thread before it has run out of work.
- The monitor to managing concurrency can hold a lock on an object across several methods.
- Pulse() methods will notify a single, waiting thread that the state of the object it is waiting for has changed.
- When joining threads, the thread that is currently executing will be joined to the end of the thread that initiated the join.
- The lock keyword is the simplest way of controlling concurrency.
Permalink |
Comments (0) | Hits: 1204 | Time: 22:41:29