Schedulability Analysis of Hierarchical Real-Time Systems under Shared Resources