what are resources in case of Threads



what are resources in case of Threads..

Answer / Raj Kumar Vishwakarma

In programming, a thread has several resources associated with it, including:

1. Stack: A region of memory that holds the execution context of each thread.
2. Heap: Shared memory region between threads for storing objects and data structures.
3. Synchronization objects (locks): Used to control access to shared resources, ensuring concurrency issues are avoided.
4. Program counters (PC): A register that keeps track of the current instruction to be executed.
5. Global variables: Accessible by all threads in a program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?

2 Answers  


How to print a name "ARCHANA" in any programming language

6 Answers   Value Labs,


what is different between kenerl mode and user mode?

1 Answers  


HOW TO BREAK THE FIREWALL?

0 Answers   ME,


what is the difference between "types" and "data" in abap.

4 Answers   Tech Soft,


Why multiple inheritance is removed in java?

4 Answers   TCS,


write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe

1 Answers  


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

1 Answers   Amazon,


differenc between visual studio 2005,2008 & 2010?

2 Answers  


smal talk is pure object oriented or not?

1 Answers  


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1 Answers  


difference between mantis and other tools?

1 Answers  


Categories