The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
State true or false

A program to compute the sum of first 10000 numbers can be divided into 4 sub parts and executed on 4 CPUs using either forks/threads. The reason why we prefer threads is because  large portions of the data /code between the 4 subparts are very similar and need not duplicated.

A. True

B. False
asked in Operating System by (165 points) | 164 views
Seems True!
Sir please tell why the answer is true
see my given below solution.

1 Answer

0 votes

A thread is a basic unit of CPU utilization; it comprises a thread ID, a program counter, a register set, and a stack. It shares with other threads belonging to the same process its code section, data section and other operating-system resources, such as open files and signals.

Hence, statement is true!

answered by Veteran (27.6k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

28,947 questions
36,793 answers
34,690 users