Institute of Southern Punjab Multan
Department of Computer Science
Subject Theory of Programming Languages
Class BSCS Semester 5th
Instructor Ms Fiza Ishtiaq Assignment 3rd
Question Statement:
Sr No Question Statement CLO BTL
1. Describe subprogram-level concurrency within 3 3
the context of programming languages. How is it
related to the concept of concurrency
granularity? Provide examples of two
programming languages that support this feature.
2. In theoretical models of programming 3 3
languages, what is a monitor, and how does it
differ from other synchronization mechanisms
such as semaphores? Explain how a monitor
guarantees mutual exclusion and the typical
language constructs used to implement it