Студопедия
Новини освіти і науки:
МАРК РЕГНЕРУС ДОСЛІДЖЕННЯ: Наскільки відрізняються діти, які виросли в одностатевих союзах


РЕЗОЛЮЦІЯ: Громадського обговорення навчальної програми статевого виховання


ЧОМУ ФОНД ОЛЕНИ ПІНЧУК І МОЗ УКРАЇНИ ПРОПАГУЮТЬ "СЕКСУАЛЬНІ УРОКИ"


ЕКЗИСТЕНЦІЙНО-ПСИХОЛОГІЧНІ ОСНОВИ ПОРУШЕННЯ СТАТЕВОЇ ІДЕНТИЧНОСТІ ПІДЛІТКІВ


Батьківський, громадянський рух в Україні закликає МОН зупинити тотальну сексуалізацію дітей і підлітків


Відкрите звернення Міністру освіти й науки України - Гриневич Лілії Михайлівні


Представництво українського жіноцтва в ООН: низький рівень культури спілкування в соціальних мережах


Гендерна антидискримінаційна експертиза може зробити нас моральними рабами


ЛІВИЙ МАРКСИЗМ У НОВИХ ПІДРУЧНИКАХ ДЛЯ ШКОЛЯРІВ


ВІДКРИТА ЗАЯВА на підтримку позиції Ганни Турчинової та права кожної людини на свободу думки, світогляду та вираження поглядів



Programming. Multiprogramming

The following items are included in the programming: a) Consideration of the problem. Is the problem completely defined? Can we find a method of solution? Will the method fit the computer we use? Will we have enough time, both to prepare the solution on the computer and to run out the answers? b) Analysis of the problem. Does the algorithm that we can use exist? Are there "canned" routines that we can apply? That is, are there parts of this problem for which we may already have the computer solution? How much accuracy do we want? How well we assure ourselves that the solutions are correct? Can we construct test data to check the computer solution? Thus, programming covers all activities from the start of the job up to the end and including flowcharting.

Even in scientific computations, the most difficult part of programming is not the coding, or actual writing of the instructions for the computer, but the technical analysis of exactly what to be computed and how it is to be computed. To illustrate it, consider the case where a large problem involves, at some state, the solution of a quadratic equation. There are several methods of solving such an equation with the pencil and paper, but what method is preferable on the computer? Preferable in what sense – in the sense of fastest execution time for the calculation, inthe sense of fitting into the least possible amount of core storage; or perhaps in the sense of being easiest to code. The programmer must take these decisions. The programmer does not make all his decisions at once. He usually begins with an overall view of the entire system and the computer is considered as just another unit in the system. As he plans the system, he draws a system flowchart, a graphic and easily understood picture of what happens in the system. He then breaks each part of the system flowchart down into as much detail as needed, producing detailed flowcharts. For the computer processing he draws a special program flowchart, outlining, in general, the essential steps in the computer program. This is refined to produce detailed program flowcharts from which the coding begins. The coder, who may or may not be the same person who did the system analysis, translates each block of the flowchart into one or more instructions for the computer.

One reason for using an operating system is to increase throughout the amount of useful work the computer performs in a given time period. In many jobs, the computer spends most of its time waiting for the completion of input-output operations, particularly printing. If the computer has enough core storage and sufficient input-output devices, it allows for multiprogramming. Multiprogramming means that two or three different and unrelated programs are placed in storage, with each program having its own set of input-output files. The supervisor gives control to the highest priority program and it continues to be executed until it reaches a point where it can go no further until some pending input-output is completed. At this point, the supervisor saves the status of the program and transfers control to the next highest priority program. When input-output operation is completed, the supervisor halts program which was running and returns control to the first program. Processing continues inthis way with the computer entering to wait state only when all programs are waiting. Although the amount of time taken for the computer to complete any one program is increased, the total time for all programs will usually be reduced substantially.




Переглядів: 592

<== попередня сторінка | наступна сторінка ==>
What is implied in the following assertion? | Active Vocabulary

Не знайшли потрібну інформацію? Скористайтесь пошуком google:

  

© studopedia.com.ua При використанні або копіюванні матеріалів пряме посилання на сайт обов'язкове.


Генерація сторінки за: 0.012 сек.