我正在处理哲学家就餐算法。我需要使用此代码生成 5 位哲学家
main() ->
philos1 = spawn (?MODULE, philosopher, []),
philos2 = spawn (?MODULE, philosopher, []),
philos3 = spawn (?MODULE, philosopher, []),
philos4 = spawn (?MODULE, philosopher, []),
philos5 = spawn (?MODULE, philosopher, []),
fork1 = spawn (?MODULE, fork, []),
fork2 = spawn (?MODULE, fork, []),
fork3 = spawn (?MODULE, fork, []),
fork4 = spawn (?MODULE, fork, []),
fork5 = spawn (?MODULE, fork, []).
有人可以给我一个关于哲学家和叉子函数的粗略概念吗?