buffer now wakes up the waiting processes.