A novel task scheduling model for fog computing