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
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
is it possible to create your own header files?
What is an object?
Is null always equal to 0(zero)?
What is the restrict keyword in C?
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...
#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā%dā ,a[i]); }
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression
what are far pointers?
Explain about the functions strcat() and strcmp()?