Refactor irqs handle
Remove process execution from main
Add locking in cpu
Fix IO behaviour