Skip to content

Commit a1cf9ed

Browse files
authored
Update README.md
1 parent eba1eaf commit a1cf9ed

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
11
# Parallel_programing_CSharp
22
Some code for parallel programming, measurement of execution time and division of tasks into separate threads of the processor.
3+
4+
The context of each folder is as follow:
5+
6+
## LU1
7+
8+
- Ex1 - An algorithm that traverses all elements of an array and calculate Math.Pow().
9+
- Ex2 - A problem that finds the product of two matrices with n number of elements. The task is realized by first using a sequential For loop and then using Parallel.For. Execution time is also measured in both cases.
10+
11+
## LU2
12+
13+
- Ex1 - In this task we have a class bank account (Account), with a member variable mBalance -
14+
the current account balance and the method method Withdraw100 (), which does not have the balance with 100. The problem solves the problem when two threads simultaneously withdraw money from this bank account, the balance in it remains correct.
15+
- Ex2 - A console application that sums each of the elements of a two-dimensional array of type double with a number of the same type. An array is initialized with random numbers. When traversing an array in the summation method, a message is displayed in the console with the thread name and the values of i and j only when i and j are divided by 100.
16+
The summation is performed in a method to be called from 2 threads with different priority. The results of each thread are measured and compared.
17+
18+
## LU3
19+
20+
Demonstration for working with tasks in C #.
21+
22+
## LU3_2
23+
24+
A program that divides the multiplication of an array of type double by a number of the same type into as many tasks as there are computer processors.
25+
26+
## LU_OpenMP
27+
28+
OpenMp private directive.
29+
30+
## LU5
31+
32+
OpenMp lastprivate directive.
33+
34+
## LU6_reduction
35+
36+
OpenMp reduction clause.
37+
38+
## LU7
39+
40+
OpenMp firstprivate directive.
41+
42+
## LU8
43+
44+
OpenMp schedule clause.
45+
46+
## LU9_barrierCriticalMasterOrdered
47+
48+
OpenMp barrier, critical, master and order directives.
49+
50+
##LU10_MPI
51+
52+
Introduction to MPI programming with C#.

0 commit comments

Comments
 (0)