RU1837289C - Two-input priority unit - Google Patents

Two-input priority unit

Info

Publication number
RU1837289C
RU1837289C SU914912386A SU4912386A RU1837289C RU 1837289 C RU1837289 C RU 1837289C SU 914912386 A SU914912386 A SU 914912386A SU 4912386 A SU4912386 A SU 4912386A RU 1837289 C RU1837289 C RU 1837289C
Authority
RU
Russia
Prior art keywords
input
output
requests
inputs
service
Prior art date
Application number
SU914912386A
Other languages
Russian (ru)
Inventor
Владимир Викторович Туравинин
Виктор Васильевич Мажников
Сергей Николаевич Ази
Анатолий Петрович Орлов
Original Assignee
Пушкинское высшее училище радиоэлектроники противовоздушной обороны
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Пушкинское высшее училище радиоэлектроники противовоздушной обороны filed Critical Пушкинское высшее училище радиоэлектроники противовоздушной обороны
Priority to SU914912386A priority Critical patent/RU1837289C/en
Application granted granted Critical
Publication of RU1837289C publication Critical patent/RU1837289C/en

Links

Landscapes

  • Bus Control (AREA)

Abstract

Изобретение относитс  к области вычислительной техники и может быть использовано дл  управлени  доступом к общему ресурсу двух активных устройств вычислительной системы. Цель изобретени  - расширение области применени  за счет реализации циклической дисциплины обслуживани  запросов, позвол ющей предоставл ть приоритет более коротким запросам в случае, когда длительность обслуживани  запросов заранее не известна. Достижение цели обеспечиваетс  введением в двухвходовое устройство приоритета новых св зей между элементами, что позвол ет увеличить количество обслуженных запросов за врем  работы общего ресурса за счет квантовани  времени обслуживани  запросов. 1 ил.The invention relates to the field of computer technology and can be used to control access to a shared resource of two active devices of a computer system. The purpose of the invention is to expand the scope by implementing a circular discipline of request servicing, which allows priority to be given to shorter requests when the duration of request servicing is not known in advance. Achieving the goal is ensured by introducing into the two-input device a priority of new connections between the elements, which allows to increase the number of served requests during the life of the shared resource by quantizing the time of serving the requests. 1 ill.

Description

Изобретение относитс  к области вычислительной техники и может быть исполь- зс вано дл  управлени  доступом к общемуThe invention relates to the field of computer technology and can be used to control access to the general

р€p €

сурсу двух активных устройств вычислительной системы.the course of two active devices of a computing system.

Цель изобретени  - расширение области применени  устройства за счет реализации ц|/ клической дисциплины обслуживани , по- звзл ющей предоставл ть приоритет более коротким запросам в случае, когда длительность обслуживани  запросов заранее не из- ве ;тна.The purpose of the invention is to expand the scope of the device by implementing a logical service discipline, which makes it possible to give priority to shorter requests when the duration of the service is not known in advance;

На чертеже приведена функциональна  сх ма устройства.The drawing shows the functional diagram of the device.

Устройство содержит генератор им- пу ibcoa 1 .элементы И 2-5. схему сравнени  6, егистр 7, триггер 8, элемент ИЛИ 9, счет- чи с 10, элемент НЕ 11, элемент И-НЕ 12, входы 13, 14, группу кодовых входов 15,The device contains an ibcoa 1-type generator. Elements I 2-5. comparison circuit 6, register 7, trigger 8, element OR 9, counts from 10, element NOT 11, element NAND 12, inputs 13, 14, group of code inputs 15,

выyou

:оды 16, 17.: odes 16, 17.

Изображенные на чертеже элементы устройства соединены следующим образом. Первый вход 13 устройства соединен с первыми входами первого элемента И 21 и элемента И-НЕ 12, второй вход которого соединен со вторым входом 14 устройства и первым входом второго элемента И 3, аыход которого соединен со вторым выходом 17 устройства, выход первого элемента И 2 соединен с первым выходом 16 устройства, выход генератора импульсов 1 соединен с первыми входам/, третьего элемента И 4 и четвертого элемента И 5, выход которого соединен со счетным входом счетчика 10, группа выходов которого соединена со второй группой входов схемы сравнени  6, перва  группа входов которой соединена с группой выходов регистра 7, группа входов которого  вл етс  группой кодовых входов 15 устройства, выход схемы сравнени  6The elements of the device shown in the drawing are connected as follows. The first input 13 of the device is connected to the first inputs of the first element And 21 and the element AND-NOT 12, the second input of which is connected to the second input 14 of the device and the first input of the second element And 3, the output of which is connected to the second output 17 of the device, the output of the first element And 2 connected to the first output 16 of the device, the output of the pulse generator 1 is connected to the first inputs of /, the third element And 4 and the fourth element And 5, the output of which is connected to the counting input of the counter 10, the group of outputs of which is connected to the second group of inputs of the comparison circuit 6, the first group of inputs of which is connected to the group of outputs of register 7, the group of inputs of which is the group of code inputs 15 of the device, the output of the comparison circuit 6

оо со х|oo with x |

кэke

0000

оabout

соединен со входом обнулени  счетчика 10 и третьим входом элемента И-НЕ 12, выход которого соединен с третьими входами второго элемента И 3 и первого элемента И 2, второй вход четвертого элемента И 5 соединен со входом элемента НЕ 11, выход которого соединен со вторым входом третьего элемента И 4, выход которого соединен со счетным входом триггера 8, единичный и пулевой выходы которого соединены со.вторыми входами соответственно первого элемента И 2 второго элемента И 3. второй вход элемента ИЛИ 9 соединен с выходом первого элемента И 2 и входом установки в единицу триггера 8, вход установки в ноль которого соединен с выходом второго элемента И 3 и первым входом элемента ИЛИ 9, выход которого соединен со входом элемента НЕ 11.connected to the input of zeroing the counter 10 and the third input of the AND-NOT 12 element, the output of which is connected to the third inputs of the second AND 3 element and the first AND 2 element, the second input of the fourth AND 5 element is connected to the input of the HE 11 element, the output of which is connected to the second input the third element And 4, the output of which is connected to the counting input of the trigger 8, the unit and bullet outputs of which are connected with the second inputs respectively of the first element And 2 of the second element And 3. the second input of the element OR 9 is connected to the output of the first element And 2 and the input Settings in the latch unit 8, a zero setting input of which is connected with the output of the second AND gate 3 and the first input of the OR gate 9, whose output is connected to the input of NOT 11.

Устройство работает следующим образом .The device operates as follows.

В исходном состо нии счетчик 10 находитс  о нулевом состо нии, на регистре 7 установлен код величины кванта времени обслуживани , на входах 13, 14 установлены нулевые сигналы. Триггер 8 переключаетс  из одного состо ни  в другое по мере поступлени  импульсов от генератора 1 через элемент И 4. В случайные моменты времени на входы 13 и 14 устройства поступают запросы (единичные сигналы) на обслуживание . Запрос присутствует на соответствующем входе до окончани  его полного обслуживани .In the initial state, the counter 10 is in the zero state, a code for the value of the quantum of the service time is set on register 7, zero signals are set on the inputs 13, 14. The trigger 8 switches from one state to another as pulses arrive from the generator 1 through the And element 4. At random times, the device inputs 13 and 14 receive service requests (single signals). The request is present at the appropriate entrance until the end of its full service.

Рассмотрим работу устройства при наиболее СЛОУ.НОЙ ситуации, когда одновременно поступили запросы на вход 13 и вход 14. Допустим, что триггер 8 в момент поступлени  запросов находилс  в единичном состо нии. В этом случае на обслуживание будет прин т запрос, поступивший по входу 13, т.к. элемент И 2 окажетс  открытым по третьему входу единичным сигналом с выхода элемента И-НЕ 12 (т.к. на его третьем входе имеетс  нулевой сигнал с выхода схемы сравнени  6), а по второму входу единичным сигналом с единичного выхода триггера 8. Таким образом, на выходе 16 устройства установитс  единичный сигнал с выхода элемента И 2. Этот же сигнал, поступив на вход установки в единичное состо ние триггера 8, обеспечит удержание в единичном состо нии триггер, а через элементы ИЛИ 9 и НЕ 11 закроет элемент И 4 по второму входу, прекратив этим подачу импульсов с генератора 1 на счетный вход триггера 8.Consider the operation of the device in the most ACCIDENT situation when requests for input 13 and input 14 are simultaneously received. Suppose that trigger 8 was in a single state at the time of the receipt of requests. In this case, the service will receive a request received at input 13, because the And 2 element will turn out to be a single signal open at the third input from the output of the And-NOT 12 element (since at its third input there is a zero signal from the output of the comparison circuit 6), and at the second input, a single signal from the single output of trigger 8. Thus , at the output 16 of the device, a single signal from the output of the And 2 element will be established. The same signal, arriving at the input of the installation in the single state of trigger 8, will ensure that the trigger is held in the single state, and through the OR 9 and NOT 11 elements it will close the And 4 element by the second entrance, thereby stopping the flow of them a pulse generator 1 to the count input of the flip-flop 8.

С момента по влени  единичного сигнала на выходе 16 начинаетс  обслуживание общим ресурсом запроса,From the moment of the appearance of a single signal at the output 16, service begins with the common request resource,

поступившего на вход 13, а врем  его непрерывного обслуживани  будет учитыватьс  на счетчике 10, так как единичный сигнал с выхода элемента ИЛИ 9 откроет по первомуreceived at the input 13, and the time of its continuous service will be taken into account at the counter 10, since a single signal from the output of the element OR 9 will open on the first

входу элемент И 5, через первый вход которого на счетный вход счзтчика 10 начнут поступать счетные импульсы с генератора 1. После того, как на группе выходов счетчика 10 по витс  код, равный коду, записанномуinput element 5, through the first input of which counting pulses from generator 1 will begin to arrive at the counting input of counter 10. After a code equal to the code recorded on the group of outputs of counter 10

в регистре 7, с выхода схемы сравнени  6 единичный сигнал (длительность которого будет указана ниже) сбросит счетчик 10 и поступит на третий вход элемента И-НЕ 12 и, т,к. на двух других его входах уже имеютс in register 7, from the output of the comparison circuit 6, a single signal (the duration of which will be indicated below) will reset the counter 10 and will go to the third input of the AND-NOT 12 element, and so on. its other two inputs already have

5 единичные сигналы, на выходе этого элемента по витс  нулевой сигнал, который закроет по третьим входам элементы И 2 и И 3, обеспечив поступление нулевых сигналов с их выходов на установочные входы тригге0 ра 8 и закрывание через элемент ИЛИ 9 по второму входу элемента И 5, чтобы счетные импульсы не поступали на счетчик 10, а единичным сигналом с выхода элемента НЕ 11 откроетс  элемент И 4 и очередным импуль5 сом с генератора 1 триггер 8 переключитс  в нулевое состо ние. К этому моменту единичный сигнал с выхода схемы сравнени  6 закончитс  (его длительность рассчитываетс  как сумма времен срабатывани  элемен0 тов 12, 2, 9, 11, 4 и периода следовани  импульсов генератора 1) и на выходе элемента И-НЕ 12 по витс  единичный сигнал, что приведет к срабатыванию элемента И 3, т.к. триггер теперь находитс  в нулевом со5 сто нии. Далее работа устройства осуществл етс  аналогично вышеописанному и, таким образом, обеспечиваетс  выделение кванта времени обслуживани  запросу, поступившему по входу 14. Если в течение5 single signals, at the output of this element, there is a zero signal, which closes the And 2 and And 3 elements at the third inputs, ensuring the input of zero signals from their outputs to the installation inputs of trigger 8 and closing through the OR element 9 at the second input of And 5 so that the counting pulses do not arrive at the counter 10, and the And 4 element opens with a single signal from the output of the HE 11 element, and with the next pulse 5 s from the generator 1, the trigger 8 switches to the zero state. At this point, the single signal from the output of the comparison circuit 6 will end (its duration is calculated as the sum of the response times of the elements 12, 2, 9, 11, 4 and the pulse repetition period of the generator 1) and a single signal will appear at the output of the AND-NOT 12 element. which will lead to the operation of the element And 3, because the trigger is now at zero state. Further, the operation of the device is carried out similarly to the above and, thus, provides the allocation of a quantum of time service to the request received at input 14. If during

0 очередного кванта обслуживание одного из запросов полностью закончилось, т.е. на соответствующем входе 13 или 14 по витс  нулевой сигнал, то устройство перейдет к обслуживанию другого запроса, причем ес5 ли в очереди на обслуживание стоит только один запрос (только на одном из входов имеетс  единичный сигнал), то прерывание обслуживани  этого запроса не наступает и ему выдел етс  еще квант времени.0 of the next quantum, the service of one of the requests is completely over, i.e. at the corresponding input 13 or 14 a zero signal is received, the device will go on to service another request, and if there is only one request in the service queue (there is a single signal on only one of the inputs), then the service is not interrupted another time slice is allocated.

0 Таким образом, предлагаемое устройство реализует циклическую дисциплину обслуживани  запросов, обеспечива  приоритет запросам с малой длительностью обслуживани  при априорной неопределеи5 ности времени, требуемого дл  обслуживани  этих запросов. Такое обслуживание запросов приводит к максимизации (при правильном выборе величины кванта) количества обслуженных общим ресурсом (ОР) запросов за врем  его работы.0 Thus, the proposed device implements a cyclical discipline of servicing requests, providing priority to requests with a short duration of service with an a priori uncertainty in the time required to service these requests. Such query servicing leads to maximization (with the correct choice of the quantum value) of the number of queries serviced by a common resource (PR) during its operation.

| В св зи с тем, что предлагаемое устройство не создает экономии, а дает иной положительный эффект - позвол ет увеличить соличество обслуженных запросов общим эесурсом, проведем сравнительный анализ предлагаемого и базового устройства, в качестве которого выбрано двухвходовое устройство приоритета (1), поскольку оно иболее эффективно реализует функции збслуживан.и  запросов с заранее неизве- :тными требуемыми длительност ми обслуживани .| Due to the fact that the proposed device does not create savings, but gives a different positive effect - it allows to increase the number of requests served by the general resource, we will conduct a comparative analysis of the proposed and basic device, in which a two-input priority device is selected (1), since it is more It effectively implements the functions of servicing and requests with previously unknown: required service durations.

Проанализируем количество обслужен- -1ых запросов в вычислительной системе, содержащей два абонента и общий ресурс - например, процессор за интервал време- -1И, равный 6 условным единицам. I Пусть к началу анализируемого интерзала одновременно поступило два запроса; тервый от первого абонента, требующий 8 единиц времени обслуживани , а второй - эт второго абонента, требующий 2 единицы зремени обслуживани .Let us analyze the number of serviced -1 requests in a computer system containing two subscribers and a common resource - for example, a processor for a time interval of -1I, equal to 6 arbitrary units. I Suppose that at the beginning of the analyzed interval two requests arrived simultaneously; the first from the first subscriber, requiring 8 units of service time, and the second from the second subscriber, requiring 2 units of service time.

При использовании базового устройст- зз в вычислительной системе с веро тностью 0,5 за анализируемый интервал фемени полностью будет обслужен один janpoc (от второго абонента), и с веро тностью 0,5 - ни одного запроса, т.е. в среднем считает 0,5 запроса,When using the basic devices in a computing system with a probability of 0.5, one janpoc (from the second subscriber) will be fully served for the analyzed femeni interval, and with a probability of 0.5, not a single request, i.e. considers an average of 0.5 requests,

; При использовании предлагаемого усг- эойства, счита , что квант обслуживани  ра- }ен одной единице времени и затратами на прерывание ОР от обслуживани  одного абонента на обслуживание другого абонен- а можно пренебречь, полностью.с веро тностью 1 будет обслужен один запрос (от цторого абонента).; When using the proposed service, assuming that the service quantum is equal to one unit of time and the cost of interrupting the PR from serving one subscriber to serving another subscriber can be neglected completely. With a probability of 1, one request will be served (from one subscriber).

I Таким образом, относительный выигрыш в количестве обслуженных запросов при использовании предлагаемого устройства по сравнению с базовым составит 100 (1-0,5)-50%.I Thus, the relative gain in the number of served requests when using the proposed device compared to the base will be 100 (1-0.5) -50%.

i Ф о р м у л а и з о б р е т е н и   | Двухвходовое устройство приоритета, Содержащее генератор импульсов, первый,i FORMULA AND Sample | Two-input priority device, containing a pulse generator, first,

второй, третий, четвертый элемент И, схему сравнени , регистр, триггер, элемент ИЛИ, счетчик и элемент И-НЕ, причем первый запросный вход устройства соединен с первы- ми входами первого элемента И и элемента И-НЕ, второй вход устройства соединен с первым входом второго элемента И, выход генератора импульсов соединен с первыми входами третьего и четвертого элементов И,the second, third, fourth AND element, the comparison circuit, register, trigger, OR element, counter and AND element, the first request input of the device connected to the first inputs of the first AND element and the AND element, the second input of the device is connected to the first input of the second element And, the output of the pulse generator is connected to the first inputs of the third and fourth elements And,

выход которого соединен со счетным входом счетчика, перва  группа входов схемы сравнени  соединена с группой выходов регистра , группа информационных входов которого  вл етс  группой кодовых входовthe output of which is connected to the counter input of the counter, the first group of inputs of the comparison circuit is connected to the group of outputs of the register, the group of information inputs of which is a group of code inputs

устройства, инверсный выход триггера соединен с вторым входом второго элемента И, выход которого соединен с первым входом элемента ИЛИ, выход которого соединен с входом элемента НЕ, отличающеес device, the inverse trigger output is connected to the second input of the second AND element, the output of which is connected to the first input of the OR element, the output of which is connected to the input of the element NOT, different

тем, что, с целью расширени  области применени  за счет реализации циклической дисциплины обслуживани  запросов, позвол ющей предоставл ть приоритет более коротким запросам в случае, когда длительность обслуживани  запросов заранее не известна, в нем второй запросный вход устройства соединен с вторым входом элемента И-НЕ, выход третьего элемента И соединен со счетным входом триггера, единичный выход которого соединен с вторым входом первого элемента, второй вход элемента ИЛИ соединен с выходом первого элемента И и входом установки в 1 триггера , и  вл етс  первым выходом устройства,the fact that, in order to expand the scope by implementing a circular discipline of request servicing, which allows priority to be given to shorter requests when the duration of request servicing is not known in advance, the second request input of the device is connected to the second input of the NAND element , the output of the third AND element is connected to the counting input of the trigger, the single output of which is connected to the second input of the first element, the second input of the OR element is connected to the output of the first And element and the installation input 1 trigger, and is the first output of the apparatus,

вход установки в О триггера соединен с выходом второго элемента И и  вл етс  вторым выходом устройства, выход элемента И-НЕ соединен с третьими входами первого и второго элементов И, третий вход элемента И-НЕ соединен с выходом схемы сравнени  и с входом сброса счетчика, группа выходов которого соединена с второй группой входов схемы сравнени , выход элемента ИЛИ соединен с вторым входом четвертогоthe input of the installation in trigger O is connected to the output of the second AND element and is the second output of the device, the output of the AND gate is connected to the third inputs of the first and second AND elements, the third input of the AND gate is connected to the output of the comparison circuit and to the counter reset input, the group of outputs of which is connected to the second group of inputs of the comparison circuit, the output of the OR element is connected to the second input of the fourth

элемента И, выход элемента НЕ соединен с вторым входом третьего элемента И.element AND, the output of the element is NOT connected to the second input of the third element I.

SU914912386A 1991-02-20 1991-02-20 Two-input priority unit RU1837289C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU914912386A RU1837289C (en) 1991-02-20 1991-02-20 Two-input priority unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU914912386A RU1837289C (en) 1991-02-20 1991-02-20 Two-input priority unit

Publications (1)

Publication Number Publication Date
RU1837289C true RU1837289C (en) 1993-08-30

Family

ID=21561140

Family Applications (1)

Application Number Title Priority Date Filing Date
SU914912386A RU1837289C (en) 1991-02-20 1991-02-20 Two-input priority unit

Country Status (1)

Country Link
RU (1) RU1837289C (en)

Similar Documents

Publication Publication Date Title
RU1837289C (en) Two-input priority unit
RU1807485C (en) Device for foreground servicing of requests
SU1495793A1 (en) Dynamic priority unit
SU1315976A1 (en) Priority device
SU1727128A1 (en) Device for simulating process of servicing calls with different priorities
SU1336004A1 (en) Inquiry service device
SU1495794A1 (en) Multichannel priority unit for servicing requests
RU1777140C (en) Requests servicing device
SU1386994A1 (en) Multichannel priority device for connection to pipeline
SU1698889A1 (en) Priority two-port device
SU1532943A1 (en) Device for modelling queueing systems
SU1702368A1 (en) Priority device
SU1418730A1 (en) Device for simulating mass service systems
SU1045228A1 (en) Device for controlling query service
SU1264175A1 (en) Device for controlling order of servicing interrogations
SU1633406A2 (en) Prioritizer
SU1695301A1 (en) Device for priority service of requests
SU1432535A1 (en) Device for interfacing subscribers with computer
SU1746382A2 (en) Priority device
SU1410052A1 (en) Device for simulating mass service systems
SU1334148A1 (en) Multichannel device for connecting users to common line
SU531159A1 (en) Apparatus for simulating Poisson queuing systems
SU407376A1 (en) ADAPTIVE SWITCH OF THE SYSTEM OF TEL EISMEREN II
SU1277386A1 (en) Device for checking serviceability of counter
SU1113804A1 (en) Device for servicing interrogations