Scheduling subject to resource constraints: classification and complexity