Why is it considerably more difficult to test, debug, and prove program correctness for concurrent programs than for sequential programs?

What will be an ideal response?


There are many more possible execution sequences than with sequential programs. Concurrent actions may be performed in any possible sequence including simultaneously on parallel computing architectures such as multiprocessors. Another problem is that concurrent programs may malfunction because of subtle timing problems. Debugging systems can be difficult if it is not possible to replicate the precise sequence of events that occurred. An example would be an air traffic control system monitoring the movements of thousands of planes—it would be impossible to reposition the planes at precisely the locations they occupied when a bug was detected.

Computer Science & Information Technology

You might also like to view...

Two tasks that are operating ________ are executing simultaneously.

a. concurrently b. in parallel c. sequentially d. iteratively

Computer Science & Information Technology

CASE STUDY C-1Sheldon has been asked to create a flyer advertising the Fall ski trip for his class. He has pictures from last year's ski trip that he would like to place on the flyer. He would also like to place speech balloons on the picture to show how much fun everyone had on the trip. Sheldon has clicked on the Rectangle tool and used the Rectangle tool pointer to draw the shape on his flyer. How will he know that the rectangle is selected?

A. He will see a mask. B. He will see a clipping box. C. He will see a bounding box. D. He will see a dashed rectangle.

Computer Science & Information Technology

You must apply a(n) ________ to add a decision-making element to a mail merge process

Fill in the blank(s) with correct word

Computer Science & Information Technology

CRT monitors use ____.

A. radio signals B. analog signals C. laser signals D. infrared signals

Computer Science & Information Technology