0
내가 코드를 통과 한수준
npoints = 10000
circle_count = 0
p = number of tasks
num = npoints/p
find out if I am MASTER or WORKER
do j = 1,num
generate 2 random numbers between 0 and 1
xcoordinate = random1
ycoordinate = random2
if (xcoordinate, ycoordinate) inside circle
then circle_count = circle_count + 1
end do
if I am MASTER
receive from WORKERS their circle_counts
compute PI (use MASTER and WORKER calculations)
else if I am WORKER
send to MASTER circle_count
endif
이 알고리즘에 사용되는 병렬 처리 수준을 누구나 알 수 있습니다 ??? 내가 prallelism의 수준을 요구하고있는 있습니다 1) 작업 또는 프로그램 수준 2) 작업 또는 절차 수준 3) 간 교육 수준 4)
감사합니다. 그러나 나는 평행성의 수준을 묻고있다 1) 직업 또는 프로그램 레벨 2) 작업 또는 절차 레벨 3) 인터 명령 레벨 4) 인트라 명령어 레벨 –
@HighPerformanceMark 나는 나의 포스트를 편집했다. !! –