Option B is right option for it.
First it simple method by which deadlock can be prevented but sometimes process execution takes places on some resources and new request is required by it but still some resourses are available to use it.In that condition starvation can be happpen.