How do threads differ from processes in resource usage?
- Depends on the operating system
- Less memory usage than processes
- More memory usage than processes
- Same memory usage as processes
Threads typically use less memory compared to processes because they share the same address space and resources like code and data sections. Processes, on the other hand, have their own memory space and require more overhead for context switching and resource allocation.
Loading...
Related Quiz
- The ___________ operation in strings is used to find the length of the string.
- Explain the concept of Continuous Integration (CI) and its role in Agile development.
- What is the purpose of the "alt" attribute in an HTML image tag?
- What is the difference between symmetric and asymmetric encryption?
- When would you use the Observer design pattern?