suggested by alessandro in conversion from INT2FUN macro
changed queue type into list* and started coding
now the scheduler REMOVE the descriptor of the next running process