schedular using linked list