Geass: A generic framework of scheduling using object based contention analysis