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 |
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)?
How to print a name "ARCHANA" in any programming language
what is different between kenerl mode and user mode?
HOW TO BREAK THE FIREWALL?
what is the difference between "types" and "data" in abap.
Why multiple inheritance is removed in java?
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
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?
differenc between visual studio 2005,2008 & 2010?
smal talk is pure object oriented or not?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
difference between mantis and other tools?