Respect the resource request order
Remove while loop for waiting resources
Fix blockSize