Discuss with critical comment using appropriate


Question 1: (a) As computer programming languages have evolved, language designers have increasingly provided more features to help the programmer avoid errors (either at compile time or run time) in the implementation of a solution.

Discuss with critical comment, using appropriate illustrations from a range of programming languages, the extent to which the above statement can be considered true.

(b) Functional programming languages offer the possibility of eliminating some of the errors associated with concurrency. Discuss, using examples from a functional programming language, how this might be achieved.

Question 2: (a) An issue in imperative programming is concurrently executing threads accessing shared data: for example, in the programming language Java, two concurrently executing threads reading from and writing to an instance of an ArrayList. Carefully describe what these issues are, together with any possible solution. Do not include issues that occur when tasks with different priorities are involved.

(b) A potential consequence of concurrently executing threads that have individual priorities is "priority inversion". Describe carefully, using a realistic example, what "priority inversion" is and describe in the context of this example how the consequences of "priority inversion" may be overcome.

(c) Compare and contrast cyclic scheduling with rate-monotonic scheduling as a means of ensuring that the deadlines are met for events scheduled in a real-time system. In your comparison show clearly what these two forms of scheduling involve.

(d) When several threads access a common data structure there is the potential for the ABA problem to occur. Carefully describe, using an appropriate example, what the ABA problem is and how it may be avoided.

Question 3: (a) From the prospective of a user, discuss both the positive and negative implications of the use of cookies in the web pages which they access.

(b) Confidentiality and security of information are major issues for people who use local as well as remote computer systems.
Discuss with critical comment the steps that can be taken both by the user and the system to ensure that information is kept secure and safe.

(c) Discuss the advantages/ disadvantages of using a cluster of computers rather than a series of standalone machines to run many individual applications.

In your discussion, outline how a cluster can balance the workload across machines in the cluster even though individual applications start on and depend on resources from a specific machine in the cluster. What resource demands would make it difficult to migrate a program to another machine in the cluster?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Discuss with critical comment using appropriate
Reference No:- TGS01406183

Now Priced at $30 (50% Discount)

Recommended (91%)

Rated (4.3/5)