Compiler-assisted dynamic scheduling for effective parallelization of loop nests on multicore processors