Programming with hyper-threading technology