a simple load_balance realized by C