Response-time analysis of arbitrarily activated tasks in multiprocessor systems with shared resources