Ask Computer Engineering Expert

Question:

Question 1

(a) In the evolution of imperative programming languages, features have been introduced, whilst other features have been removed or deprecated in 'successor' languages.

Discuss, with critical comment, the motivations for these changes that have been made to imperative programming languages. Concentrate your discussion on issues of reliability and maintenance, both corrective and enhancement of applications that are developed in these languages.

In your discussion use a range of imperative programming languages (For example: COBOL, BCPL, C, C++, Java etc.) to illustrate points that you make. DO NOT consider any issues or constructs that directly or indirectly make use of concurrency.

(b) Discuss, using an appropriate notation, how it is possible to 'port' a compiler for a programming language to a new host machine which has a different architecture from its existing environment. The effort required to port the compiler should be considerably less that the effort required to create the original version of the compiler.

In your discussion of the process involved, describe carefully the overall structure of the compiler in relationship to the need to facilitate the 'port' of the compiler to a new machine.

Question 2:

(a) What is transactional memory? Discus, how transactional memory may be implicitly used in a Java program to improve performance in programs that consist of several concurrently executing threads that share access to common data structures.
Remember, the use of transactional memory will not require any changes to the physical source code of a program.

(b) Discuss, with critical comment, the extent to which the new features of Java 8 allow a programmer to construct a program that will make use of multiple cores without explicitly having to use threads in the solution. Use appropriate examples to illustrate the points that you make.

(c) In a computer game, a high priority thread is used to process user interactions  with the system. This high priority thread accesses a shared data structure (aSDS) which is also accessed by a low priority thread in the system. To prevent corruption of the data, a lock is used to prevent more than 1 concurrent access to the shared data structure (aSDS). The low priority thread continually checks the state of the game and performs low level housekeeping tasks including the re-organisation of the shared data structure (aSDS). The re-organisation of the shared data structure (aSDS) will occur every second, however, it will take under 5 CPU milliseconds to run.

The above system will always allow a higher priority thread to run even if it has to pre-empt a running lower priority thread. Recently a medium priority thread has been introduced that adds some artificial intelligence to the game. This medium priority task takes some time to run (1-5 seconds), but can be pre-empted by the high priority thread that controls the user interactions. The medium priority thread does not access the shared data structure (aSDS). Unfortunately the observed effect by users of the new version of the game is
that they occasionally experience long pauses of several seconds when it is not possible to interact with the game.

Suggest what the most likely cause of this problem is in the new 'improved' version of the game. Propose a solution to resolve the issue and carefully comment on why it works.

Question 3:

(a) For systems that require authentication of users of the system, what steps would you advise developers and users of the system to take to ensure as far as possible that the users who are authenticated by the system really are the person that they claim to be? For each suggestion, justify your selection with critical comment about what issue or issues is being addressed. In addition, what other issues would you advise the developers to investigate, to ensure the confidentiality and security of the data stored on the system?

(b) The TCP protocol provides a reliable stream-oriented communications medium, and yet it uses the IP protocol suite, an unreliable packet-oriented medium. Explain what 'reliable' means in this context, and describe how TCP's reliable stream-oriented service is implemented. Then explain and critically comment on the performance consequences of using TCP to communicate between a client and a server when:

1) A long distance between the client and the server is involved.

2) A highly interactive program is used on the server, for example, a cloud based editor which often involves the sending of single characters from the client to the cloud based editor. In each case above explain what can be/ is done to alleviate the impact on performance.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91786241
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As