a switch implement on a muticore processer