9. Многопоточность
public class Example {
private int value = 0;
private final Semaphore mutex = new Semaphore(1)
public int getNextValue() throws InterruptedException {
try {
mutex.acquire();
return value++;
} finally {
mutex.release();
}
}
}
14. Куда двигаться дальше?
● "Haskell по-человечески" (http://dshevchenko.biz/hs.html)
● Видеокурс по Erlang от Ю. Жлобы (https://www.youtube.com/user/yzh44yzh/videos)
● Статья на RSDN про Erlang (http://rsdn.ru/article/erlang/GettingStartedWithErlang.xml)
● Книга Дж. Армстронга (https://github.com/dyp2000/Russian-Armstrong-Erlang)
● Книги от Р. Душкина (http://roman-dushkin.narod.ru/)
● Подкаст от функциональщиков (http://eax.me/tag/podcast/)
● Статья про N2O (http://habrahabr.ru/post/220841/)