Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

A blaster rifle manufacturing facility on naboo has 6500

A blaster rifle manufacturing facility on Naboo has 6,500 employees. The employees were asked whether they preferred a four-day work week (10 hours per day), a five- day work week (8 hours per day), or flexible hours. Yo ...

There is a formula that calculates what a lifetime and

There is a formula that calculates what a lifetime and loyal customer contributes to long term profit and it is an astounding amount. Question - How would a company achieve such a feat?

Write a program to ask the user to eithernbspselect 1 to

Write a program to ask the user to either  Select 1 to print the digits in an integer reversely  Select 2 to print the characters in a string reversely using a switch case, your program will either 1- call the recursive ...

Part 1 if false change the incorrect parts to make them

Part 1, If false, change the incorrect parts to make them true. DO NOT NEGATE THE FALSE SENTENCES. 1. According to the weak-form efficient market hypothesis, investors can take advantage of historical information. 2. The ...

What outside resources are available to assist technology

What outside resources are available to assist technology managers in the implementation and maintenance process of IT governances? Outline two resources.

Question suppose we iterate the application of a blurring

Question : Suppose we iterate the application of a blurring filter with kernel size 5 on an image of 800 times 600 pixels. How many times should we apply the filter for the color of the pixel at position (20, 20) to be i ...

Question please submit your draft apa-formatted research

Question: Please submit your draft APA-formatted research papers through this assignment page. You will have until the end of Week #4 to submit a draft of your paper for consideration as extra credit. This is Part 1 of t ...

A resistor selected at random from a bin containing 1 k ohm

A resistor selected at random from a bin containing 1 K Ohm 5% tolerance resistors is measured with an ohmmeter. The ohmmeter is old fashioned pointer type that introduces measurement error and operator error (it is hard ...

Sum of consecutive integersa write a program that prompts

Sum of consecutive integers A) Write a program that prompts for an integer-let's call it X-and then finds the sum of X consecutive integers starting at 1. That is, if X = 5, you will find the sum of1+2+3+4+5=15 B) Modify ...

Question suppose you are the co-author of an academic paper

Question : Suppose you are the co-author of an academic paper that is being prepared for publication. The original research idea is yours, but you let your co-authors handle the data collection and actual writing of the ...

  • 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