1 Answer - Sort by: Date | Rating
Threads are light weight processes that divide main flow of control into multiple flows and each flow of control/thread will execute independently. Activity of the process in a system is represented by threads. The process that has multiple threads is called as multi threaded. Each threads has its own thread ID ( Data Type Integer), register, program counter, stack, error no. Threads can communicate using shared memory within same process.
There are different advantages of using threads to mange and maintain the subtask of applications. When we are using threads than less system resources are used for context switching and increased the throughput of application. Threads also simplify the structure of program. There is no special mechanism for communication between tasks.
Threads also have some disadvantages for example threads are not reusable as they are dependent on a process and cannot be separated from the process. Threads are not isolated as they don't have their own address space. The error cause by the thread can kill the entire process or program because that error affects the entire memory space of all threads use in that process or program. Due to the shared resources by the threads with in the process can also affect the whole process or program when a resource damage by the thread. For concurrent read and write access to the memory thread will required synchronizations. Data of the process can easily damage by the thread through data race because all the threads with in the process have write access to same piece of data.
There are different advantages of using threads to mange and maintain the subtask of applications. When we are using threads than less system resources are used for context switching and increased the throughput of application. Threads also simplify the structure of program. There is no special mechanism for communication between tasks.
Threads also have some disadvantages for example threads are not reusable as they are dependent on a process and cannot be separated from the process. Threads are not isolated as they don't have their own address space. The error cause by the thread can kill the entire process or program because that error affects the entire memory space of all threads use in that process or program. Due to the shared resources by the threads with in the process can also affect the whole process or program when a resource damage by the thread. For concurrent read and write access to the memory thread will required synchronizations. Data of the process can easily damage by the thread through data race because all the threads with in the process have write access to same piece of data.
2
0
- What Are The Responsibilities Of A Speaker?
- Can Somebody Give Me Their Account?
- Write A C Program For Find The Sum Of 1/2+1/3+....+1/n?
- What Are Integrity Rules?
- What Is Half Duplex Characteristics?
- What Us Half Duplex Characteristics?
- Where Do I Go To Check My Text Messages From My Computer?
- How Is Internet Changing Our Lives?
- Can Someone Give Me A Sum Code Thats Not Used?
- What Is The Characteristics Of Half Duplex Characteristic And It's Example?
- How To Make Hornswoogle Come Ps2?
- How Do You Get The Red Gyarados In Pokemon Pearl?
- What Is Papermoney?explain Its Advantages&its Disadvantages
- Are There Any Cool Kids Websites?
- Why Event Driven Languages Are Popular?
- How Do I Enable Javascript On My Cricket Cap Tr Cell Phone?
- What Are The Responsibilities Of A Good Speaker?
- Can U Tell Me Where U Can Find A Game Like Habbo?
- Can Someone Give Me A Ship In Darkoebit, Well Give Metheir Account With A Ship Level 17 And Golaith Or Vengeance Please Im Really Despret Can Some One Help Me Please?
- What Is Disk Management?
- What Are The Contributions Of Computer Year2000- Present?
- Can You Tell Me Where Can I Get Directx9?
- Is The "Guru Min A Monstrous Adventure" Game Cool?
- Were Is My Tab Key On My Laptop?
- How Much Is The Original Psp?
- What Are The Disadvantages And Advantages?
- What Are Advantages & Disadvantages?
- What Are The Advantages And Disadvantages Of Self-conveyancing?
- What Are The Advantages And Disadvantages Of Using Computers ?
- What Are The Advantages And Disadvantages Of Being An Author?
- What Is N+1 Testing? What Are Its Advantages & Disadvantages?
- What Are The Advantages And Disadvantages Of Corporations?
- What Are Advantages And Disadvantages Of Television?
- What Is IDE? What Are The Advantages And Disadvantages Of IDE?
- What Are The Advantages And Disadvantages Of Frictions?
- What Are The Advantages And Disadvantages Of Flyers?
- What Are The Advantages And Disadvantages Of Extranet?
- What Are The Advantages And Disadvantages Of Love?

New Comment - Comments are editable for 5 min.