In this assignment you are asked to write a multithreaded
program to find the duplicates in an array of 10 million
integers. The integers are between -5000,000 to 5000,000 and
are generated randomly. Use 10 threads, each thread works on
1000,000 integers. Compare the time needed to accomplish the
task with single thread of execution program. Do not include
the time to fill the array with integers in the execution
time.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Why do we use stdio h and conio h?

0 Answers  


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

0 Answers  


Differentiate between calloc and malloc.

0 Answers   Wipro,


Is Exception handling possible in c language?

0 Answers   Wipro,


What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort

3 Answers   Accenture,






What is ctrl c called?

0 Answers  


program to locate string with in a string with using strstr function

2 Answers   Huawei, Shreyas,


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

0 Answers  


What is pass by reference in c?

0 Answers  


Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }

4 Answers  


Explain the differences between public, protected, private and internal.

2 Answers  


Here is alphabets : abcdefgh 1) how to reverse. as hgfedcba 2) after reversal, how to group them in a pair hg fe dc ba.

2 Answers  


Categories