SU1552186A2 - Device for monitoring program run - Google Patents
Device for monitoring program run Download PDFInfo
- Publication number
- SU1552186A2 SU1552186A2 SU884462110A SU4462110A SU1552186A2 SU 1552186 A2 SU1552186 A2 SU 1552186A2 SU 884462110 A SU884462110 A SU 884462110A SU 4462110 A SU4462110 A SU 4462110A SU 1552186 A2 SU1552186 A2 SU 1552186A2
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- counter
- output
- decoder
- programs
- Prior art date
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Изобретение относитс к вычислительной технике, может быть использовано дл контрол хода программ в мультипроцессорных и мультипрограммных вычислительных системах и вл етс усовершенствованием изобретени по а.с. N 894713. Целью изобретени вл етс повышение быстродействи устройства дл контрол хода программ. С этой целью в устройство введен счетчик, переполнение которого свидетельствует о недопустимой длительности выполнени программы. Кроме того, в устройство введены элемент ИЛИ, два элемента И, элемент НЕ и дешифратор. Устройство обеспечивает селекцию прерываний от системных программ и приостановку процесса модификации счетчика оставшегос времени выполнени пользовательской программы на период работы системных программ. 1 ил.The invention relates to computing, can be used to control the progress of programs in multiprocessor and multiprogramming computing systems and is an improvement of the invention in a. N 894713. The aim of the invention is to increase the speed of the device for monitoring the progress of programs. For this purpose, a counter is entered into the device, the overflow of which indicates an unacceptable duration of the program. In addition, an OR element, two AND elements, an NOT element, and a decoder are introduced into the device. The device provides for the selection of interrupts from system programs and the suspension of the process of modifying the counter of the remaining time of the user program for the duration of the system programs. 1 il.
Description
Изобретение относитс к вычислительной технике, может найти применение при создании устройств контрол мультипроцессорных и мультипрограммных вычислительных систем и вл етс усовершенствованием устройства по авт.св № 894713.The invention relates to computing, can be used to create control devices for multiprocessor and multiprogramming computing systems and is an improvement of the device according to aut. No. 894713.
Цель изобретени - повышение быстродействи устройства за счет селекции прерываний от системных программ и прекращени модификации оставшегос времени выполнени пользовательской программы на период работы системных программ.The purpose of the invention is to increase the speed of the device by selecting interrupts from system programs and stopping the modification of the remaining user program execution time for the duration of the system programs.
На чертеже представлена функциональна схема устройства.The drawing shows the functional diagram of the device.
Устройство содержит первый счетчик 1, суммирующий вход которого подключен к выходу генератора 2 импульсов , а выход переполнени вл етс управл ющим выходом 3 устройства , группу из К регистров -4, входную группу блоков 5 элементов И, выходную группу блоков 6 элементов И, второй счетчик 7, первый 8 и второй 9 дешифраторы, блок 10 элементов ИЛИ, первый 11 и второй 12 элементы ИЛИ, вход 13 сброса устройства, вход 14 восстановлени устройства, вход 15 максимального времени выполнени программы, вход 16 прерывани устройства , третий дешифратор 17,третий счетчик 18, третий элемент ИЛИ 19, элемент НЕ 20, эле менты И 21 и 22. Устройство работает следующим образом.The device contains the first counter 1, the summing input of which is connected to the output of the generator 2 pulses, and the overflow output is the control output 3 of the device, a group of K registers -4, an input group of blocks of 5 And elements, an output group of blocks of 6 And elements, the second counter 7, first 8 and second 9 decoders, block 10 elements OR, first 11 and second 12 elements OR, device reset input 13, device recovery input 14, maximum program execution time input 15, device interrupt input 16, third decoder 17, third account tchik 18, the third element OR 19, the element NOT 20, the elements And 21 and 22. The device operates as follows.
В начале работы на вход 13 устройства подаетс сигнал, обнул ющийAt the beginning of the operation, an input is given to the input 13 of the device, which nullifies
слcl
СПSP
юYu
00 О500 O5
N)N)
содержимое третьего счетчика 18.the contents of the third counter 18.
При каждом исполнении программы в счетчик 1 программно заноситс через информационные входы 15 устрой ства и блок 10 элементов ИЛИ дополнительный код максимального времени выполнени программы. В процессе выполнени программы на суммирующий вход счетчика 1 поступают импульсы от генератора 2 импульсов временных меток. Если врем выполнени программы превосходит максимально допустимое , то в счетчике 1 формируетс сигнал переполнени , который через управл ющий выход 3 устройства поступает в систему прерываний вычислительной системы,, При нормальном ходе программы переполнение счетчика 1 не происходит„At each program execution, the counter 1 is programmatically entered through the information inputs 15 of the device and a block of 10 elements OR the additional code of the maximum program execution time. During the execution of the program, the summing input of the counter 1 receives pulses from the generator 2 of the time stamp pulses. If the program execution time exceeds the maximum allowable, then counter 1 generates an overflow signal, which through control output 3 of the device enters the computer system interrupt system. During normal program run, counter 1 does not overflow
Однако и при нормальном ходе программы при мультипрограммном режиме работы возможны прерывани данной программы за счет необходимости выполнени пользовательских программ с более высоким приоритетом или системных программ обработки прерываний от устройств вычислительной системы.However, even during the normal course of a program in multiprogram mode of operation, interruptions of this program are possible due to the need to execute user programs with a higher priority or system interrupt handling programs from computing system devices.
В первом случае возникает необходимость запоминани и восстановлени оставшегос времени выполнени прерванных программ с тем, чтобы в счетчик 1 занести дополнительный код максимального времени выполнени прерывающей программы и иметь возможность продолжить в последующем выполнение прерванной программы.In the first case, it becomes necessary to memorize and restore the remaining execution time of the interrupted programs so that the counter 1 can add the additional code of the maximum execution time of the interrupting program and be able to continue the execution of the interrupted program later.
Во втором случае необходимо лишьIn the second case only
приостановить про цесс модификацииsuspend modification process
и содержимого счетчика 1 на период раand the contents of counter 1 for a period of
боты системной программы.bots system program.
Сигналы прерывани поступают через второй информационный вход 16 устройства на третий дешифратор 17„ Управл ющие сигналы на первом выходе дешифратора 17 по вл ютс при поступлении на дешифратор сигналов прерывани от пользовательских программ с более высоким приоритетом, а на втором выходе - при поступлении сигналов прерывани от системных программ обработки прерываний от устройств вычислительной системыThe interrupt signals are received through the second information input 16 of the device to the third decoder 17. The control signals appear at the first output of the decoder 17 when the interrupt signals from user programs with higher priority arrive at the decoder, and at the second output when interrupt signals from the system interrupt handling programs from computing system devices
Сигналы с первого выхода дешифратора 17 поступают на тактовый вход дешифратора 8. Входы первого 8 и второго 9 дешифраторов соединены с выходами второго счетчика 7 числа прерываний от пользовательских про0The signals from the first output of the decoder 17 are fed to the clock input of the decoder 8. The inputs of the first 8 and second 9 decoders are connected to the outputs of the second counter 7, the number of interrupts from custom pro0
5five
00
5five
00
5five
00
5five
00
5five
грамм. При поступлении первого сигнала прерывани от пользовательской программы единичный сигнал формируетс на первом выходе дешифратора 8, который поступает на управл ющие входы первого входного блока элементов И 5 группы и осуществл ет прием кода со счетчика 1 в первый регистр 4 группы . Одновременно сигнал с первого выхода дешифратора 8 через первый элемент ИЛИ 11 поступает на суммирующий вход счетчика 7 и увеличивает его содержимое на единицу. Вследствие этого при поступлении второго сигнала прерывани от пользовательской программы единичный сигнал формируетс на втором выходе дешифратора 8, который осуществл ет запись содержимого счетчика 1 во второй регистр 4 группы. После этого начинаетс выполнение пользовательской программы более высокого приоритета, при этом в счетчик 1 через входы 15 устройства и блок 10 элементов ИЛИ снова заноситс дополнительный код максимально допустимого времени выполнени программы. При поступлении последующих сигналов прерываний от пользовательских программ работа схемы устройства аналогична описанной выше.gram. When the first interrupt signal is received from the user program, a single signal is generated at the first output of the decoder 8, which is fed to the control inputs of the first input block of the group 5 And elements and receives the code from counter 1 to the first register 4 of the group. At the same time, the signal from the first output of the decoder 8 through the first element OR 11 enters the summing input of the counter 7 and increases its content by one. As a result, when a second interrupt signal is received from the user program, a single signal is generated at the second output of the decoder 8, which records the contents of counter 1 into the second register 4 of the group. After that, the user program of a higher priority starts to run, and the additional code of the maximum allowable program execution time is again entered into the counter 1 through the inputs 15 of the device and the block 10 of the elements OR. Upon receipt of subsequent interrupt signals from user programs, the operation of the device circuit is similar to that described above.
При поступлении К-го сигнала прерывани от пользовательской програм- - мы содержимое счетчика 1 переписываетс в К-й регистр 4 группы.When the Kth interrupt signal is received from the user program, the contents of counter 1 are rewritten into the Kth register 4 of the group.
При поступлении на вход 16 устройства сигнала прерывани от системной программы управл ющий сигнал по вл етс на втором выходе дешифратора 17. Этот сигнал поступает на суммирующий вход счетчика 18 и увеличивает его содержимое на единицу. Таким образом, счетчик 18 содержит глубину прерываний системных программ Кроме того, сигнал с второго выхода дешифратора 17 поступает на останавливающий вход генератора 2. Генератор 2 останавливаетс , тем самым прекращаетс процесс модификации содержимого счетчика 1. При поступлении на вход 16 устройства последующих сигналов прерывани от системных программ устройство работает аналогично. Следует иметь в виду, что приоритеты системных программ различны, но приоритет любой системной программы обработки прерываний от устройств всегда выше приоритета любой пользовательской программы.When the interrupt signal from the system program arrives at the device input 16, the control signal appears at the second output of the decoder 17. This signal arrives at the summing input of the counter 18 and increases its content by one. Thus, the counter 18 contains the depth of the system program interrupts. In addition, the signal from the second output of the decoder 17 is fed to the stopping input of generator 2. The generator 2 stops, thereby stopping the process of modifying the contents of counter 1. When the device 16 arrives at the input 16 of the device programs the device works in a similar way. It should be borne in mind that the priorities of the system programs are different, but the priority of any system program for handling interrupts from devices is always higher than the priority of any user program.
5155251552
При возвращении к обработке преранных пользовательских программ стройство работает следующим обраом .When returning to the processing of prerany user programs, the device works as follows.
Сигналы на восстановление от поль- овательских и системных программ оступают на четвертый управл ющий ход 14 устройства. Если содержимое четчика 18 не равно нулю, то нуле- 10 вой сигнал с выхода обнулени счетчика 18 поступает на элемент ИЛИ 19, второй вход элемента И 22 и через элемент НЕ 20 на второй вход элемента И 22. Сигнал восстановлени 1S с входа 14 поступает только на вычитающий вход счетчика 18. При этом происходит уменьшение содержимого счетчика 18 на единицу. Если в резуль- тате модификации содержимое счетчи- уп ка становитс нулевым, то единичный сигнал с выхода обнулени счетчика 18 через элемент ИЛИ 19 запускает генератор 2, а также поступает через элемент НЕ 20 на второй вход 25 элемента И 21 и второй вход элемента И 22. Очередной сигнал восстановлени поступает на первый вход элемента И 21, с выхода элемента И 21 - на тактовый вход дешифратора 9. Еди- 30 ничный сигнал формируетс на выходе дешифратора 9 в соответствии с содержимым счетчика 7. Так, если последн запись содержимого счетчика 1 была осуществлена в К-й регистр 4 группы, то при поступлении первого сигнала 5 восстановлени единичный сигнал формируетс на К-м выходе второго дешифратора 9, который поступает на управл ющие входы К-го выходного блока 6 элементов И группы и осуществл ет перепись содержимого К-го регистра в счетчик 1.The signals for recovery from user and system programs are available on the fourth control course 14 of the device. If the contents of the 18 is not zero, then the zero signal from the zero output of counter 18 goes to the element OR 19, the second input of the AND 22 element and through the element NOT 20 to the second input of the And 22 element. The restore signal 1S from the input 14 receives only on the subtracting input of the counter 18. This reduces the content of the counter 18 by one. If, as a result of the modification, the contents of the counter become zero, then a single signal from the zero output of counter 18 through the element OR 19 starts generator 2, and also enters through the element HE 20 to the second input 25 of the element 21 and the second input of the element 22. The next recovery signal is fed to the first input of the AND 21 element, from the output of the AND 21 element to the clock input of the decoder 9. A single signal is generated at the output of the decoder 9 in accordance with the contents of counter 7. So, if the last record of the contents of counter 1 was implied is connected to the 4th group K register, then when the first recovery signal 5 arrives, a single signal is generated at the K output of the second decoder 9, which goes to the control inputs of the Kth output block 6 of the AND group and overwrites the contents of K- th register in the counter 1.
Одновременно этот же сигнал через элемент ИЛИ 12 поступает на вычитающий вход счетчика 7, уменьша его содержимое на единицу. Вследствие этого при поступлении второго сигнала восстановлени через управл ющий вход 14 устройства единичный сигнал формируетс на (К-1)-м выходе дешифра- тора 9, поступает на управл ющие входы (К-1)-го выходного блока 6 элементов И группы и осуществл ет перепись содержимого (К-1)-го регистра 4 группы в счетчик 1. Одновременно этот же сигнал через второй элемент ИЛИ 12 поступает на вычитающий входAt the same time, the same signal through the element OR 12 is fed to the subtracting input of counter 7, reducing its content by one. As a result, when the second recovery signal is received through the control input 14 of the device, a single signal is generated at the (K-1) th output of the decoder 9, is fed to the control inputs of the (K-1) th output block of 6 elements And group and There is a census of the contents of the (K-1) th register of group 4 into counter 1. At the same time, the same signal through the second element OR 12 is fed to the subtractive input
4040
4545
5 0 5 5 0 5
00
5five
18661866
второго счетчика 7, уменьша его содержимое на единицу.second counter 7, reducing its content by one.
Аналогичным образом осуществл етс возвращение к обработке других пользовательских программ с более низким приоритетом. Предлагаемое устройство обеспечивает селекцию прерываний от системных программ обработки прерываний, поступающих от устройств вычислительной системы, и приостановку модификации счетчика оставшегос времени выполнени программ вместо отработки полного цикла запоминани и восстановлени кода оставшегос времени выполнени , который проходит при отработке прерываний от пользовательских программ с более высоким приоритетом, что повышает быстродействие вычислительной системы снабженной устройством дл контрол хода программ.Similarly, a return to the processing of other user programs with lower priority is carried out. The proposed device provides for the selection of interrupts from system interrupt handling programs coming from the computing system devices, and suspending the modification of the counter of the remaining execution time of the programs instead of practicing the full cycle of storing and restoring the remaining execution time code that runs when the interrupts from user programs with higher priority are processed, which increases the speed of the computing system equipped with a device for controlling the course of programs.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884462110A SU1552186A2 (en) | 1988-07-18 | 1988-07-18 | Device for monitoring program run |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884462110A SU1552186A2 (en) | 1988-07-18 | 1988-07-18 | Device for monitoring program run |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894713 Addition |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1552186A2 true SU1552186A2 (en) | 1990-03-23 |
Family
ID=21390429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884462110A SU1552186A2 (en) | 1988-07-18 | 1988-07-18 | Device for monitoring program run |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1552186A2 (en) |
-
1988
- 1988-07-18 SU SU884462110A patent/SU1552186A2/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 894713, кл. G 06 F 11/28,. 1980. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1081857A (en) | Apparatus for processing interrupts in microprocessing systems | |
US5233615A (en) | Interrupt driven, separately clocked, fault tolerant processor synchronization | |
US4566111A (en) | Watchdog timer | |
US4763296A (en) | Watchdog timer | |
JPS55131852A (en) | Fail-safe unit of control computer | |
JPH0795290B2 (en) | Real-time software monitoring and write protection controller | |
GB2241799A (en) | Supervision of microprocessors | |
SU1552186A2 (en) | Device for monitoring program run | |
JPH0320776B2 (en) | ||
JPH0573296A (en) | Microcomputer | |
SU978151A2 (en) | Electric device checking system | |
RU1815644C (en) | Device for control of program execution in computer | |
JPH0110653Y2 (en) | ||
JPH04332056A (en) | Microcomputer | |
JPH05257748A (en) | Microprocessor device | |
JPS60196849A (en) | Method for detecting runaway of microprocessor | |
SU894713A1 (en) | Device for monitoring command run | |
SU1647567A1 (en) | Device for data entry checking | |
SU1285603A1 (en) | Code converter | |
KR940012123A (en) | How to Perform Multitasking Using Timer Interrupts | |
JPS61226839A (en) | Event processing system | |
JP2557785Y2 (en) | Single chip microcomputer | |
SU1462308A1 (en) | Variable priority device | |
JPH0346853B2 (en) | ||
SU660050A1 (en) | Arrangement for control of interruption of programs |