A new approach to deadlock prevention in manufacturing systems