filmov
tv
MultiThreading - Square and Cube of array elements using multi-threading

Показать описание
Write a program explaining multiple threads working together to solve a problem:
1. Create a int[] DataArray of 100 elements with random numbers.
2. Create 5 threads which take the part of elements from DataArray.
3. Those threads should compute the Square[ ] and Cubes[ ] for those respective values.
4. Print result of square and cubes after the all process threads complete their execution.
--------------------------------------------------------------------------------------------------------------
Subscribe to my other Youtube channel for a peek in the life:
--------------------------------------------------------------------------------------------------------------
Follow my daily stories on Instagram:
--------------------------------------------------------------------------------------------------------------
Join me on:
--------------------------------------------------------------------------------------------------------------
Hi Everyone, I'm Rajdeep Kaur and I'm an ex-Amazon software engineer. As of now, I am working as a Software Engineer in Miro. I was hired directly from India to Europe (Netherlands).
I make videos on competitive programming, Data Structures and Algorithms and tips to get hired.
Subscribe for the latest updates, I upload new videos almost everyday :) I hope my content helps you in getting your dream job.
1. Create a int[] DataArray of 100 elements with random numbers.
2. Create 5 threads which take the part of elements from DataArray.
3. Those threads should compute the Square[ ] and Cubes[ ] for those respective values.
4. Print result of square and cubes after the all process threads complete their execution.
--------------------------------------------------------------------------------------------------------------
Subscribe to my other Youtube channel for a peek in the life:
--------------------------------------------------------------------------------------------------------------
Follow my daily stories on Instagram:
--------------------------------------------------------------------------------------------------------------
Join me on:
--------------------------------------------------------------------------------------------------------------
Hi Everyone, I'm Rajdeep Kaur and I'm an ex-Amazon software engineer. As of now, I am working as a Software Engineer in Miro. I was hired directly from India to Europe (Netherlands).
I make videos on competitive programming, Data Structures and Algorithms and tips to get hired.
Subscribe for the latest updates, I upload new videos almost everyday :) I hope my content helps you in getting your dream job.
Комментарии