added busy waiting mode + example