GATE CSE
First time here? Checkout the FAQ!
x
0 votes
134 views
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 (135 points)   | 134 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 (11.2k points)  


Top Users Sep 2017
  1. Habibkhan

    7184 Points

  2. Warrior

    2664 Points

  3. Arjun

    2582 Points

  4. rishu_darkshadow

    2520 Points

  5. A_i_$_h

    2280 Points

  6. nikunj

    1980 Points

  7. manu00x

    1856 Points

  8. makhdoom ghaya

    1770 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,151 questions
33,733 answers
79,971 comments
31,120 users