1. Write a function start(AnAtom, Fun) to register AnAtom as spawn(Fun). Make sure your program works correctly in the case when two parallel processes simultaneously evaluate start/2. In this case, you must guarantee that one of these processes succeeds and the other fails.
- spawn(Fun)을 AnAtom으로 등록하는 start(AnAtom, Fun)함수를 작성하라. 병렬 프로세스 두 개가 동시에 start/2를 평가할 경우에 제대로 작동하는지 확인하자. 이 경우, 이 프로세스중 하나는 성공, 다른 하나는 실패가 되어야 한다.
2. Write a ring benchmark. Create N processes in a ring. Send a message round the ring M times so that a total of N * M messages get sent. Time how long this takes for different values of N and M. Write a similar program in some other programming language you are familiar with. Compare the results. Write a blog, and publish the results on the Internet!
- 링(ring) 벤치마크를 작성하라. 링에 프로세스를 N개 생성하자. 링을 돌며 M번 메시지를 보내 총 N*M개의 메시지를 보내자. N과 M에 여러 다른 값을 주어 얼마나 걸리는지 시간을 재자.
- spawn(Fun)을 AnAtom으로 등록하는 start(AnAtom, Fun)함수를 작성하라. 병렬 프로세스 두 개가 동시에 start/2를 평가할 경우에 제대로 작동하는지 확인하자. 이 경우, 이 프로세스중 하나는 성공, 다른 하나는 실패가 되어야 한다.
2. Write a ring benchmark. Create N processes in a ring. Send a message round the ring M times so that a total of N * M messages get sent. Time how long this takes for different values of N and M. Write a similar program in some other programming language you are familiar with. Compare the results. Write a blog, and publish the results on the Internet!
- 링(ring) 벤치마크를 작성하라. 링에 프로세스를 N개 생성하자. 링을 돌며 M번 메시지를 보내 총 N*M개의 메시지를 보내자. N과 M에 여러 다른 값을 주어 얼마나 걸리는지 시간을 재자.

Prev
Rss Feed