At the moment there is an assumption that task manager will not allocate beyond the available memory size. However, it should handle this failure of allocation better in TaskManager::findFreeTask(). It should not increase the size of the taskBlocks and return failure.
At the moment there is an assumption that task manager will not allocate beyond the available memory size. However, it should handle this failure of allocation better in TaskManager::findFreeTask(). It should not increase the size of the taskBlocks and return failure.