Processor for single thread and scala STM