BankersAlgorithm in OSX Terminal