Deprecated: Implicit conversion from float-string "1546957711.326" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546957711.326" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546957711.326" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546957711.326" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546957711.326" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1546957965.792" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546957965.792" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546957965.792" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546957965.792" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546957965.792" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1546958973.625" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546958973.625" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546958973.625" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546958973.625" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546958973.625" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
UPPCL 2018 AE / GATE Overflow for GATE CSE
closed by
470 views
0 votes
0 votes
closed with the note: All question are added under uppcl2018 tag

consider the following code

int count=0;

void *thfunc()

{

      int ctr=0;

      for ( ctr=0 ; ctr<100 ; ctr++ )

                  count++ ;

}

 

if thfunc is executed by two threads concurrently in a uniprocessor system ,what will be the MINIMUM  value of count when both threads complete their execution ? Assume the count++ is performed using three instructions : (i) read value of count from memory to a cpu register R , (ii) increment R , (iii)  store the value of R in memory.

 

A. 200

B. NONE OF ABOVE

​​​​​​​C. 100

​​​​​​​D. 2

closed by

Related questions


Deprecated: Implicit conversion from float-string "1546668383.644" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546668383.644" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546668383.644" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546668383.644" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546667576.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546667576.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546667576.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546667576.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546667239.331" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546667239.331" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546667239.331" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546667239.331" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1546667201.852" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1546667201.852" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1546667201.852" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1546667201.852" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
290
views
0 answers
0 votes
admin asked Jan 5, 2019
290 views
Consider the following statements regarding life time of any normally terminating process in an operating system.The process must be in $\text{RUNNING}$ state at least on...
300
views
0 answers
0 votes
admin asked Jan 5, 2019
300 views
Consider a computer system with $32-$ bit virtual addressing and page size of sixty-four kilobytes. The computer system has one-level page table per process with each pag...
251
views
0 answers
0 votes
admin asked Jan 5, 2019
251 views
Consider the following $\text{C}$ function executed in an $\text{OS}$ with paging where the page size is $4$ kilobytes. Further, assume that the system employs a $32-$ en...
219
views
0 answers
0 votes
admin asked Jan 5, 2019
219 views
Assume that a file is written using write $\text{(fd, buf, K)}$ system call, where $\text{fd}$ is the file descriptor and $\text{K}$ is the number of bytes to be written ...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 4.0 22% 2.6 14% 72 1.6 9% 2 0.0 0% 569k 52%
Control 1.2 6% 0.7 3% 4 0.6 3% 4 0.0 0% 180k 16%
View 1.2 6% 1.2 6% 12 0.0 0% 0 0.0 0% 66k 6%
Theme 3.8 21% 3.5 19% 16 0.3 1% 2 0.0 0% 257k 23%
Stats 7.7 42% 0.1 0% 0 7.7 42% 1 0.0 0% 0k 0%
Total 18.0 100% 8.1 44% 104 10.2 56% 9 0.0 0% 1075k 100%