SU1481790A1 - Queueing system simulator - Google Patents

Queueing system simulator Download PDF

Info

Publication number
SU1481790A1
SU1481790A1 SU874282899A SU4282899A SU1481790A1 SU 1481790 A1 SU1481790 A1 SU 1481790A1 SU 874282899 A SU874282899 A SU 874282899A SU 4282899 A SU4282899 A SU 4282899A SU 1481790 A1 SU1481790 A1 SU 1481790A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
service
phase
trigger
Prior art date
Application number
SU874282899A
Other languages
Russian (ru)
Inventor
Александр Леонидович Козлов
Андрей Витальевич Лукьянов
Юрий Иванович Николаев
Леонид Степанович Сорока
Original Assignee
Предприятие П/Я Г-4190
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 Предприятие П/Я Г-4190 filed Critical Предприятие П/Я Г-4190
Priority to SU874282899A priority Critical patent/SU1481790A1/en
Application granted granted Critical
Publication of SU1481790A1 publication Critical patent/SU1481790A1/en

Links

Abstract

Изобретение относитс  к специализированным средствам вычислительной техники и предназначено дл  моделировани  процесса обслуживани  за вок. Цель изобретени  - расширение функциональных возможностей устройства за счет моделировани  прерывани  обслуживани  в каждой из фаз двухфазной системы массового обслуживани  (СМО). ЦЕЛЬ ОБЕСПЕЧИВАЕТСЯ ВВЕДЕНИЕМ В УСТРОЙСТВО БЛОКА РАСПРЕДЕЛЕНИЯ ФАЗ ОБСЛУЖИВАНИЯ, ДВУХ ЭЛЕМЕНТОВ И-НЕ и двух элементов ИЛИ. СУЩНОСТЬ ИЗОБРЕТЕНИЯ СОСТОИТ В ДОСТИЖЕНИИ ВОЗМОЖНОСТИ МОДЕЛИРОВАНИЯ ПРОЦЕССА ОБСЛУЖИВАНИЯ ЗАЯВОК ДЛЯ ДВУХ МОДЕЛЕЙ СМО: в двухканальной СМО с отказами со стохастическим распределением за вок между каналами обслуживани  и в одноканальной двухфазной СМО с распределением интервалов времени фаз обслуживани , дл  чего фиксируютс  требуемые интервалы времени обслуживани  за вок отдельно в двух фазах обслуживани , и возможностью ожидани  обслуживани  второй фазы. 2 ил.The invention relates to specialized computer facilities and is intended to simulate the process of servicing a quotation. The purpose of the invention is to expand the functionality of the device by simulating a service interruption in each of the phases of a two-phase queuing system (QS). THE PURPOSE IS PROVIDED IN THE INTRODUCTION TO THE DEVICE OF THE UNIT OF THE DISTRIBUTION OF THE PHASES OF SERVICE, TWO ELEMENTS AND AND NOT two elements OR. The essence of the invention is to achieve the possibility of modeling the process of servicing applications for two models of QS: in a two-channel QS with failures with stochastic distribution of bills between service channels and in a single-channel two-phase QS servants servos; in two service phases, and the possibility of waiting for a second phase service. 2 Il.

Description

Изобретение относитс  к специализированным системам вычислительной техники и предназначено дл  моделировани  процесса обслуживани  за вок.The invention relates to specialized computer systems and is intended to simulate the process of servicing a quotation.

Цель изобретени  - расширение функциональных возможностей устройства- за счет моделировани  прерываний обслуживани  в каждой из фаз двухфазной системы обслуживани .The purpose of the invention is to expand the functionality of the device by simulating a service interruption in each of the phases of a two-phase service system.

На фиг.1 приведена функциональна  схема устройства моделировани  систем массового обслуживани  , на фиг.2 - вариант реализации блока распределени  фаз обслуживани .Fig. 1 shows a functional diagram of a device for simulating queuing systems; Fig. 2 shows an embodiment of a block for allocating service phases.

Устройство содержит триггер 1 управлени , триггер 2 выбора режимов,The device contains a trigger 1 control, trigger 2 mode selection,

блок 3 распределени  фаз обслуживани , генератор 4 тактовых импульсов, генератор 5 случайных импульсов, первый 6, второй 7, п тый 8, третий 9, двенадцатый 10, четырнадцатый 11, восьмой 12, дев тый 13 и четвертый 14 элементы И, первый элемент ИЛИ 15, третий элемент И-НЕ 16, четвертый элемент И-НЕ 17, второй элемент ИЛИ 18, второй 19 и первый 20 реверсивные счетчики импульсов, шестой элемент И 21, четвертый 22 и третий 23 элементы ИЛИ, седьмой элемент И 24, первый 25 и второй 26 триггеры,шестой 27 и седьмой 28 элементы ИЛИ, первый 29 и второй 30 формирователиservice phase distribution unit 3, 4 clock pulse generator, 5 random pulse generator, first 6, second 7, fifth 8, third 9, twelfth 10, fourteenth 11, eighth 12, ninth 13 and fourth 14 AND elements, first OR element 15, the third element AND-NOT 16, the fourth element AND-NOT 17, the second element OR 18, the second 19 and the first 20 reverse pulse counters, the sixth element And 21, the fourth 22 and the third 23 elements OR, the seventh element And 24, the first 25 and the second 26 triggers, the sixth 27 and the seventh 28 elements OR, the first 29 and second 30 drivers

4 004 00

СОWITH

314314

импульсов, третий реверсивный счетчик 31 импульсов ,первый элемент И-НЕ 32, п тый элемент ИЛИ 33, второй элемент И-НЕ 34, тринадцатый элемент И 35, восьмой элемент ИЛИ 36,дес тый 37 и одиннадцатый 38 элементы И, информационный вход 39, входы 40 и 41 триггера 2.pulses, the third reversible counter 31 pulses, the first element AND-NOT 32, the fifth element OR 33, the second element AND-NOT 34, the thirteenth element And 35, the eighth element OR 36, the tenth 37 and the eleventh 38 elements And, information input 39 , inputs 40 and 41 trigger 2.

Блок 3 распределени  фаз обслуживани  содержит счетчик 42,дешифратор 43, наборное поле 44 и элемент ИЛИ 45.The service phase distribution unit 3 comprises a counter 42, a decoder 43, a dial pad 44, and an OR element 45.

Сущность изобретени  состоит в возможности достижени  моделировани  процесса обслуживани  за вок в двух модел х СМО - двухканальной СМО с отказами со стохастическим распределением за вок между каналами обслуживани  и одноканальной двухфазной СМО с распределением интервалов времени фаз обслуживани  и возможностью ожидани  обслуживани  второй фазы. Таким образом, во втором режиме работы устройства кажда  за вка попадает на обслуживание в одноканаль- ную СМО. Причем за вки в ней должны пройти две фазы обслуживани , каждой из которых выделен определенный интервал времени обслуживани . Одновременно в обслуживании могут находитьс  две за вки, но их обслуживание происходит попеременно: сначала обслуживаетс  за вка, наход ща с  на обслуживании первой фазы, а потом обслуживаетс  за вка, наход ща с  на обслуживании второй фазы, и оп ть в той же последовательности. Интервалы фаз обслуживани  следуют попеременно, смен   друг друга.The invention consists in the possibility of achieving a simulation of the service process in two models of QS - a two-channel QS with failures with stochastic distribution of the gap between the service channels and a single-channel two-phase QS with the distribution of time intervals of the service phases and the possibility of waiting for the service of the second phase. Thus, in the second mode of operation of the device, each application enters the service in a single-channel QS. Moreover, applications in it must go through two phases of service, each of which is allocated a certain interval of service times. Two applications can be in service at the same time, but they are serviced alternately: the application that is serviced by the first phase is served first, and then the application that is serviced by the second phase is served and again in the same sequence. The intervals of the service phases follow alternately, changing each other.

Если в динамике рассмотреть процесс обслуживани  за вок в этом режиме , то он будет следующим. Допустим , кака -то за вка поступает на обслуживание. Если устройство находитс  в интервале времени первой фазы , то эта за вка непосредственно становитс  на обслуживание, если же устройство находитс  на интервале времени второй фазы, то за вка ожидает времени первой фазы обслуживани , с наступлением которой сразу же начинает обслуживатьс . Если обслуживание за вки закончитс  раньше окончани  интервала времени первой фазы обслуживани , то она переходит на обслуживание второй фазы и ожидает момента времени наступлени  этой фазы обслуживани . Если же об7904If in dynamics we consider the process of servicing a stock in this mode, then it will be as follows. For example, for example, some service is received for service. If the device is in the time interval of the first phase, then this application is directly serviced; if the device is in the time interval of the second phase, then the application waits for the time of the first service phase, with the onset of which it immediately begins to be serviced. If the service of the application ends before the end of the time interval of the first service phase, it goes on to service the second phase and waits for the time of the onset of this service phase. If about 7904

служивание этой за вки не окончено до окончани  времени интервала первой фазы обслуживани , то ее обслу- живание прерываетс  на интервал времени второй фазы обслуживани , а продолжение и окончание обслуживани  происходит в следующие интервалы времени первой фазы обслуживани . ПослеIf this service is not completed until the end of the time interval of the first service phase, then its service is interrupted for the time interval of the second service phase, and the continuation and end of service occurs at the next time intervals of the first service phase. After

0 перехода этой за вки на обслуживание второй фазы поступивша  на обслуживание очередна  за вка становитс  на обслуживание первой фазы, где обслуживаетс  по изложенному алгоритму.If this application for servicing the second phase is transferred, the next application for servicing becomes the servicing of the first phase, where it is served according to the described algorithm.

5 Если за вка, прошедша  первую фазу обслуживани , переходит на обслуживание второй фазы, но при этом на обслуживании второй фазы находитс  предыдуща  за вка, то за вка, требу0 юща  обслуживани  второй фазы, становитс  в очередь, рассчитанную на п-1 место, где ожидает обслуживани  второй фазы до момента времени освобождени  обслуживающего прибора вто5 рой фазы. Обслуживание за вок во второй фазе обслуживани  происходит аналогично обслуживанию за вок в первой- фазе обслуживани . Те за вки, которые поступают на обслуживание при зан 0 том обслуживающем приборе первой фазы обслуживани , получают отказ в обслуживании. При зан тии за вками, ожидающими обслуживани  второй фазы, всех мест очереди прин тие очередных за вок на обслуживание первой фазы прекращаетс . Таким образом, в системе максимально может находитьс  п-И за вка, из которых одна - на обслуживании первой фазы, одна - на5 If the application that has passed the first phase of the service goes on to service the second phase, but the previous application is in service of the second phase, then the application requiring the service of the second phase becomes a queue designed for the n-1 place, where waits for service of the second phase until the moment of release of the servicing device of the second phase. Servicing a quota in the second phase of servicing is similar to servicing a quota in the first phase of servicing. Those applications that go to the service when the servicing device of the first phase of the service is occupied receive a denial of service. When applications waiting for the second phase service, all queue locations, the acceptance of the next application for the first phase service is terminated. Thus, the system can maximally contain a PI application, of which one is in the service of the first phase, one is in

Q обслуживании второй фазы; п-1 за вок , ожидающих обслуживани  второй фазы, наход тс  в очереди..Q servicing the second phase; Clause-1 of the wok waiting for second phase service is in the queue.

Устройство может функционировать в двух режимах: как двухканальна  СМО с отказами и как одноканальна  двухфазна  СМО с распределением времени интервалов фаз обслуживани  и возможностью ожидани  обслуживани  второй фазы.The device can operate in two modes: as a two-channel QS with failures and as a single-channel two-phase QS with time distribution of the service phase intervals and the possibility of waiting for service of the second phase.

Каналами обслуживани  или обслу живающими приборами дл  первой меде- ли СМО выступают триггеры 25 и 26. Они же имитируют обслуживающие приборы первой и второй фазы обслуживани  дл  второй модели СМО, Каждый из триггеров может находитьс  в одном из двух состо ний: либо имитировать обслуживание (канал зан т),либо быть свободным.Service channels or servicing devices for the first SMO medal are triggers 25 and 26. They simulate the servicing devices of the first and second service phases for the second model of the MSS. Each of the triggers can be in one of two states: either imitate the service (channel busy) or be free.

5five

5five

5five

5151

Наличие высоких единичных потенциалов на пр мых выходах триггеров 25 и 26 свидетельствует о свободном состо нии соответствующего канала обслуживани  дл  первой модели или обслуживающего прибора соответствующего цикла обслуживани  дл  второй модели.The presence of high unit potentials at the direct outputs of the flip-flops 25 and 26 indicates the idle state of the corresponding service channel for the first model or the service device of the corresponding service cycle for the second model.

В качестве за вок (требований) выступают импульсы короткой длительности , поступающие на информационный вход 39 устройства. За вки принимаютс  к обслуживанию в период времени , когда хот  бы один канал свободен в первом режиме и если триггер 25 находитс  в единичном состо нии и нет необходимости считывать требуемый интервал времени обслуживани  за вки в первом цикле обслуживани , т.е. на выходе элемента ИЛИ 22 сформирован низкий нулевой потенциал во втором режиме функционировани  устройства.The requirements (requirements) are short duration pulses arriving at the device information input 39. The applications are accepted for servicing in the period of time when at least one channel is free in the first mode and if the trigger 25 is in the one state and there is no need to read the required time interval for the application in the first service cycle, i.e. at the output of the element OR 22, a low zero potential is formed in the second mode of operation of the device.

Во втором режиме работы устройства моделируют дисциплину как бы до- обслуживани  за вок, наход щихс  на обслуживании первого и второго цикла, если их требуемый интервал обслуживани  был прерван окончанием интервала времени,распределенного под один или другой цикл обслуживани . При этом с помощью реверсивного счетчика 19 или 20 запоминаетс  временной интервал, равный времени дообслуживани  за вки.После окончани  имитации обслуживани  за вки в триггере 25 поступление следующей за вки на обслуживание первой фазы произойдет только через временной интервал, значение которого хранитс  в реверсивном счетчике 19. Аналогичным образом непосредственно на обслуживание второй фазы на триггере 26 поступает очередна  за вка после окончани  имитации обслуживани  предыдущего за вки в триггере 26 и через временной интервал, значение которого хранитс  в реверсивном счетчике 20. Определение указанных временных интервалов осуществл етс  путем подсчета количества периодов Т следовани  импульсов, вырабатываемых генератором 4 тактовых импульсов. Формирователи 29 и 30 вырабатывают короткие по длительности импульсы во врем  перепада в нулевой единичного потенциала, по- даюшегос  на их входы. ДлительностьIn the second mode of operation, the devices model the discipline of, as it were, the servicing of applications that are serviced by the first and second cycle, if their required service interval was interrupted by the end of the time interval allocated for one or the other service cycle. At the same time, using a reversible counter 19 or 20, a time interval equal to the additional servicing time of the application is memorized. After the simulation of service in the trigger 25 has been completed, the next service phase will be received only after a time interval whose value is stored in the reversible counter 19. Similarly, the second order directly to the service of the second phase on trigger 26 is received after the end of the service simulation of the previous application in trigger 26 and through the time interval The value of which is stored in the reversible counter 20. The determination of the indicated time intervals is carried out by counting the number of pulse periods T following that generated by the 4 clock pulse generator. The formers 29 and 30 produce pulses of short duration during a differential at zero unit potential, which is given to their inputs. Duration

817906817906

импульсов, вырабатываемых формировател ми 29 и 30, имитирует врем  перехода за вок из одной фазы обслуживани  в другую или из очереди на обслуживание второй фазы.the pulses produced by the formers 29 and 30 imitate the time of transfer of applications from one service phase to another or from a queue to service the second phase.

Реверсивный счетчик 31 фиксирует количество за вок, наход щихс  на обслуживании и ожидающих обслужива- 10 ни  второго цикла. Если реверсивныйA reversible counter 31 records the number of requests that are being serviced and are waiting for a service — 10 or the second cycle. If reversible

счетчик 31 находитс  в своем предельном состо нии, то очередные за вки к обслуживанию первого цикла не принимаютс .Since the counter 31 is in its limit state, the next requests for servicing the first cycle are not accepted.

15 Триггеры 25 и 26 в единичное состо ние переход т в момент перепадов в единичные нулевых потенциалов,действующих на их пр мые входы, а в нулевое - наоборот, в момент перепа2Q дов в нулевые единичных потенциалов, действующих на их инверсные входы. Реверсивный счетчик 31 измен ет свои состо ни  под действием перепадов единичных потенциалов в нулевые, дей25 ствующие на его суммирующий или вычитающий выходы.15 Triggers 25 and 26 go to the unit state at the time of the drops to the unit zero potentials acting on their direct inputs, and to the zero one - on the contrary, at the time of the transitions to the zero unit potentials acting on their inverse inputs. The reversible counter 31 changes its state under the action of the drops of unit potentials to zero, acting on its summing or subtracting outputs.

Блок 3 распределени  циклов обслуживани  (фиг.2) вырабатывает последовательность импульсов с различJQ ной скважностью, которую возможноThe service cycle distribution unit 3 (FIG. 2) generates a pulse train with a different duty cycle, which is possible

измен ть с- помощью перемычек наборного пол  44. Единичный потенциал на выходе блока 3 соответствует распределению интервала времени под первую фазу обслуживани , а нулевой потенциал - под вторую фазу обслуживани . С помощью счетчика 42 и дешифратора 43, измен ющих свои состо ни  под воздействием импульсов от генератора 4, последовательно возбуждаютс  входы наборного пол  44. С помощью перемычек , замыкающих в определенной заданной последовательности входы и выходы наборного пол  44, устанавливаетс  требуемое распределение интервалов времени циклов обслуживани . Элемент ИЛИ 45, объедин   выходы наборного пол  44, формирует на своем выходе указанное распределение интервалов времени циклов обслуживани  в последовательном коде.change with the help of jumpers of keypad 44. The unit potential at the output of unit 3 corresponds to the distribution of the time interval for the first service phase, and the zero potential for the second service phase. Using the counter 42 and the decoder 43, changing their state under the influence of pulses from the generator 4, the inputs of the pad 44 are sequentially excited. Using jumpers closing the inputs of the pad 44 in a certain predetermined sequence, the required distribution of time intervals for the maintenance cycles . The element OR 45, combining the outputs of keypad 44, forms at its output a specified distribution of time intervals of service cycles in the sequential code.

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

Предположим положительную логику работы устройства. Рассмотрим функционирование устройства в первом режиме . Это означает, что по первому входу 40 установки режима работы устройства поступил сигнал на вход трнг35Suppose the positive logic of the device. Consider the operation of the device in the first mode. This means that the first input 40 of the installation of the operating mode of the device received a signal at the input of the terminal 35

4040

4545

5050

5555

гера 2 выбора режима работы устройства и установил его в единичное состо ние . При этом единичным потенциалом с пр мого выхода триггера 2 выбора режима работы устройства предварительно открываютс  элементы И 8 и 9. За вки поступают на входы элементов И 6, 8 и 9 и.на пр мой вход элемента И 14. В зависимости от положени  управл ющего триггера 1, в которое он устанавливаетс  с заданной веро тностью Р сигналами, поступающими на его входы, за вка поступает либо в первый, либо во второй канал обслуживани  через соответствующие элементы И 6 и 8 и далее через элементы ИЛИ 15 и 18, элементы И 21 и 24 при наличии единичных потенциалов на пр мых выходах триггеров 25 и 26 в случае, если оба канала свободны . В этом случае через элементы И 9 и 14 за вки не проход т, так как на их инверсных входах присутствуют единичные потенциалы, запирающие эти элементы.Hera 2 selects the operating mode of the device and sets it to one. In this case, the AND 8 and 9 elements are preliminarily opened from the direct output of the trigger 2 for selecting the operating mode of the device. The inputs go to the inputs of the AND 6, 8 and 9 elements and the direct input of the AND 14 element. Depending on the position of the control the trigger 1, into which it is installed with a given probability P by the signals arriving at its inputs, the application enters either the first or the second service channel through the corresponding elements AND 6 and 8 and further through the elements OR 15 and 18, the elements AND 21 and 24 in the presence of unit potentials a straight triggers outputs 25 and 26 if both channels are available. In this case, elements 9 and 14 of the application do not pass through, since at their inverse inputs there are single potentials blocking these elements.

В случае, если один из каналов зан т , т.е. на пр мых выходах триггеров 25 или 26 присутствует нулевой потенциал, то открывающийс  в этом случае один из соответствующих элементов И 9 или 14 разрешает прохождение за вки в другой свободный канал , а отсутствие единичного сигнала на первых входах элементов И 21 илиIf one of the channels is busy, i.e. at the direct outputs of the flip-flops 25 or 26 there is a zero potential, then one of the corresponding elements AND 9 or 14 opening in this case allows the passage of the application to another free channel, and the absence of a single signal at the first inputs of the elements 21 and 21 or

24запрещает прохождение за вки в зан тый канал.24 prohibits the passage of applications into a busy channel.

В случае, если оба канала зан ты, за вка получает отказ. Моменты времени окончани  обслуживани  за вок в каналах обслуживани  фиксируютс  переходом соответствующих триггеровIn case both channels are busy, you get a rejection. The time of the end of the service quotation in the service channels is fixed by the transition of the corresponding triggers.

25и 26 в единичное состо ние посредством импульсов, поступающих на их пр мые входы с выходов генератора 5.25 and 26 into one state by means of pulses arriving at their direct inputs from the outputs of the generator 5.

Рассмотрим функционирование устрой ства во втором режиме.Consider the operation of the device in the second mode.

Дл  перехода устройства в этот режим по входу 41 поступает сигнал на вход триггера 2 и устанавливает его в нулевое состо ние. При этом единичным потенциалом с инверсного выхода триггера 2 открываютс  элементы И 7, 37 и 38, элементы И-НЕ 16 и 17. За вки в этом случае проход т через элемент И 7, но могут быть открыты также элементы И 6 и 14, через которые также проход т за вки. АIn order for the device to enter this mode, input 41 receives a signal at the input of trigger 2 and sets it to the zero state. In this case, unit 7 and elements 37, 38 and elements AND-NOT 16 and 17 are opened with a single potential from the inverse output of trigger 2. In this case, the applications pass through element 7 and 7, but elements 6 and 14 can also be opened, which also passes the applications. BUT

так как выходы элементов И 6, 7 и 14 объедин ютс  в первом элементе ИЛИ, то размножение за вок в этих элементах после объединени  в элементе ИЛИ 15 ликвидируетс . Таким образом,за вки , поступающие в модель, во втором режиме поступают на обслуживание первоначально только в триггер 25,since the outputs of the elements And 6, 7 and 14 are combined in the first element OR, the multiplication of the requisitions in these elements after the combination in the element OR 15 is eliminated. Thus, the applications coming into the model, in the second mode, initially go to service only in trigger 25,

имитирующий обслуживание первой фазы .imitating the maintenance of the first phase.

Допустим, что во врем  подступле- ни  очередной за вки триггеры 25 и 26 наход тс  в свободном единичномAssume that during the next application, triggers 25 and 26 are in a single free

состо нии, на выходе блока 3 распределени  циклов обслуживани  сформирован единичный потенциал, что соответствует работе устройства в первой фазе обслуживани , а три реверсивныхstate, at the output of block 3 of distribution of service cycles, a single potential is formed, which corresponds to the operation of the device in the first phase of service, and three reverse

0 счетчика 19, 20 и 31 наход тс  в исходном нулевом состо нии. Очередна  за вка через элементы ИЛИ 15 и И 21 поступает на вход триггера 25 и пере- водит его в нулевое состо ние, соот5 ветствующее обслуживанию за вки. В данном случае элементы И 10-13 заперты и импульсы от генератора 4 импульсов- через них не проход т. Если обслуживание этой за вки0, counters 19, 20, and 31 are in their initial zero state. The next application through the elements OR 15 and AND 21 enters the input of the trigger 25 and transfers it to the zero state corresponding to the maintenance of the application. In this case, elements 10-13 are locked and pulses from the generator 4 pulses do not pass through them. If the maintenance of this application

0 окончено до окончани  интервала времени первой фазы обслуживани , то в момент времени окончани  обслуживани  на выходе формировател  29 импульсов формируетс  короткий по длительности импульс, который приводит реверсивный счетчик 31 в первое состо ние и, пройд  через элементы И 38, ИЛИ 36, ИЛИ 18 и И 24, переводит триггер 26 в нулевое состо ние. При этом через элемент И 12 на суммирующий вход реверсивного счетчика 20 поступают импульсы от генератора 4. Элемент И 12 открываетс  единичными сигналами от блока 3 и триггера 26. Таким образом, счетчик 20 отсчитывает требуемьй интервал времени, который необходимо затратить на обслуживание за вки во второй фазе обслуживани , тогда, как модель переводитс  во второй цикл обслуживани .0 is completed before the end of the time interval of the first service phase, then at the moment when the service ends at the output of the pulse shaper 29 a short pulse is formed, which leads the reversible counter 31 to the first state and passed through the elements AND 38, OR 36, OR 18 and And 24, sets trigger 26 to the zero state. At the same time, through the AND 12 element, the summing input of the reversible counter 20 receives pulses from the generator 4. The AND element 12 is opened with single signals from block 3 and trigger 26. Thus, the counter 20 counts the required time interval that must be spent on servicing the application in the second the maintenance phase, while the model is transferred to the second maintenance cycle.

Если, допустим, врем  обслуживани  за вки закончитс  ранее перехода модели во вторую фазу обслуживани , то в момент времени окончани  требуемого времени обслуживани  под дей5 ствием сигнала от блока 5 триггер 26 перейдет в единичное состо ние, чем прекратит поступление счетных импульсов через элемент И 12 на сум5If, say, the service time of the application ends before the model enters the second service phase, then at the time of the end of the required service time under the action of the signal from block 5, the trigger 26 goes into one state, which will stop the flow of counting pulses through the And 12 element sum5

00

5five

00

мирующий вход счетчика 20. С наступлением второй фазы обслуживани  блок 3 формирует на своем выходе нулевой потенциал, который совместно с единичными потенциалами от пр мого выхода триггера 26 и с выхода элемента ИЛИ 23 открывает элемент И 13, через который на вычитающий вход счетчика 20 начинают поступать счетные импульсы от генератора 4. Происходит считывание интервала, требуемого на обслуживание за вки, но уже во врем  второго цикла обслуживани ,во врем  которого и требовалось обслужить эту за вку. После считывани  указанного интервала времени счетчик 20 обнул етс .Вследствие этого на выходе элементов ИЛИ 23 и 28 формируетс  нулевой потенциал, под действием которого формирователь 30 импульсов формирует короткий по длительности импульс , который приводит счетчик 31Peaceful input of counter 20. With the onset of the second service phase, unit 3 forms a zero potential at its output, which, together with unit potentials, from the direct output of trigger 26 and the output of OR 23 opens an AND 13 element through which the subtracting input of counter 20 begins to flow counting pulses from generator 4. A reading is taken of the interval required for servicing the application, but already during the second service cycle, during which it was required to service this application. After reading the specified time interval, the counter 20 is zeroed out. As a result, the output potential of the elements OR 23 and 28 forms a zero potential, under the action of which the pulse shaper 30 forms a pulse of short duration which the counter 31 produces.

в нулевое состо ние.to zero state.

ii

Если же, допустим, врем  обслуживани  за вки закончитс  позже перехода модели во вторую фазу обслуживани , то в момент перехода модели во вторую фазу обслуживани  нулевым потенциалом от блока 3 закрываетс  элемент И 12. Таким образам, счетчиком 20 будет зафиксирован интервал времени, на который необходимо будет продолжить имитирование обслуживани  за вки во второй фазе обслуживани  после фиксировани  окончани  ее обслуживани . Фиксирование окончани  обслуживани  этой за вки происходит в триггере 26. Когда же триггер 26 перейдет в единичное состо ние, откроетс  элемент И 13 и произойдет считывание интервала времени, на который требуетс  продолжить имитирование обслуживани  за вки во втором цикле обслуживани  по изложенному алгоритму .If, say, the service time of the application ends after the model transitions into the second service phase, then at the moment the model enters the second service phase, element 12 is closed by the zero potential from unit 3. Thus, the time interval for which the will continue to simulate the service of the application in the second phase of the service after fixing the end of its service. The fixing of the end of service of this application occurs in trigger 26. When trigger 26 goes into one state, element 13 will open and the time interval for which it is required to continue to simulate the service in the second service cycle according to the algorithm described will be read.

Если во врем  обслуживани  очередной за вки во второй фазе обслуживани  станут поступать следующие за в- ки, обслуженные в первой фазе и требующие второй фазы обслуживани , то они поступают в очередь, т.е. перевод т счетчик 31 в следующее состо ние . Если же триггер 26 будет в еди- ничном свободном состо нии при незаконченном обслуживании очередной за вки во второй фазе обслуживани ,т.е.If, during service, the next applications in the second phase of service will be received following the notes, served in the first phase and requiring the second phase of service, they will be received in a queue, i.e. transfer counter 31 to the following state. If trigger 26 is in a single free state when the service is not completed, the next application in the second service phase, i.e.

00

5five

00

5five

0 0

00

5five

00

5five

на выходе элемента ИЛИ 23 будет присутствовать единичный потенциал, то ни одна из следующих за вок не поступит на инверсный вход триггера 26, так как элемент И 24 будет закрыт нулевым потенциалом с выхода элемента И-НЕ 17. Этот нулевой потенциал сформируетс  посредством единичных сигналов с инверсного выхода триггера 2 и с выхода элемента ИЛИ 28. Если в очереди будут присутствовать за вки, ожидающие второй фазы обслуживани , т.е. состо ние счетчика 31 будет больше первого, то на выходе элемента И-НЕ 34 и элемента ИЛИ 33 будут сформированы единичные потенциалы , которые откроют элемент И 35 (элемент И-НЕ 34 сформирует нулевой потенциал на своем выходе только при первом состо нии счетчика 31).at the output of the element OR 23 there will be a single potential, then none of the following wakes will go to the inverted input of the trigger 26, since the element 24 will be closed by a zero potential from the output of the AND-NOT element 17. This zero potential is generated by the single signals with inverse output of trigger 2 and from the output of the element OR 28. If there are applications in the queue waiting for the second phase of service, i.e. the state of the counter 31 will be greater than the first, then at the output of the element AND-HE 34 and the element OR 33 single potentials will be formed, which will open the element AND 35 (The element AND-HE 34 will form a zero potential at its output only in the first state of the counter 31) .

Переход одной из этих за вок из очереди на обслуживание второй фазы обслуживани  будет происходить следующим образом. В момент окончани  обслуживани  очередной за вки во второй фазе обслуживани  формирователь 30 импульсов сформирует короткий по длительности импульс, который, поступа  на вычитающий вход счетчика 31, уменьшит на единицу состо ние этого счетчика, а также пройдет через элементы И 35, 37, ИЛИ 36, ИЛИ 18 и И 24 на инверсный вход триггера 26 и переведет его в нулевое состо ние, чем зафиксирует поступление этой за вки на обслуживание второй фазы. Если же счетчик 31 будет находитьс  в своем предельном состо нии, т.е. все места очереди будут зан ты и на пр мых выходах счетчика 31 будут присутствовать единичные потенциалы, поступающие на входы элемента И-НЕ 32, то на выходе этого элемента будет сформирован нулевой потенциал, который закроет элемент И 21, чем не допустит прохождени  очередных за вок на обслуживание первой фазы.The transfer of one of these applications from the service queue to the second service phase will be as follows. At the time of termination of service of the next application in the second phase of service, pulse shaper 30 will generate a pulse of short duration, which, arriving at the subtracting input of counter 31, will reduce by one the state of this counter, and also pass through AND 35, 37, OR 36, OR 18 and AND 24 to the inverted input of the trigger 26 and transfer it to the zero state, which will record the receipt of this application for servicing the second phase. If counter 31 is in its limiting state, i.e. all the queue locations will be occupied and at the direct outputs of the counter 31 there will be single potentials arriving at the inputs of the AND-HE element 32, then the output of this element will generate a zero potential that will close the element 21 and thus prevent the passage of the next request. on the service of the first phase.

Рассмотрим функционирование устройства , когда обслуживание очередной за вки в первой фазе обслуживани  окончено до окончани  интервала времени первой фазы обслуживани . При этом в момент окончани  интервала времени первой фазы обслуживани  нулевым потенциалом от блока 3 и единичным потенциалом с инверсного выхода триггера 25 откроетс  элемент И 10, через который на суммирующий вход рерррсивного счетчика 13 станут поступать счетные импульсы от генератора 4 импульсов. Счетчик 13 станет определ ть временной интервал, который необходимо будет затратить на продолжение обслуживани  этой за вки во врем  работы устройства в первой фазе обслуживани .Прекращение определени  этого интервала времени наступит с переходом триггера 25 в свободное единичное состо ние, т.е.когда закончитс  требуемое врем  обслуживани  за вки. При этом на выходе формировател  29 импульсов формировани  импульса не вырабатываетс ,так как на выходе элемента ИЛИ 27 присутствует единичный потенциал от элемента ИЛИ 22.Consider the operation of the device when the service of the next application in the first phase of the service is completed before the end of the time interval of the first phase of the service. In this case, at the end of the time interval of the first phase of servicing, a zero potential from block 3 and a single potential from the inverse output of trigger 25 will open element 10, through which counting pulses from the generator 4 of pulses will be sent to summing input of reprr counter 13. Counter 13 will determine the time interval that will need to be spent on continuing the service of this application during the operation of the device in the first phase of the service. Termination of the definition of this time interval will come with the trigger 25 switching to a free single state, i.e. service time for applications. At the same time, the pulse shaping pulse generator 29 is not generated, since a single potential from the OR 22 element is present at the output of the OR element 27.

С наступлением очередного интервала времени первой фазы обслуживани  откроетс  элемент И 11 единичными потенциалами от блока 3, элемента ИЛИ 22 и с пр мого выхода триггера 25. Через этот элемент И 11 станут поступать -счетные импульсы от генератора 4 уже на вычитающий вход счетчика 19, вследствие чего будет происходить считывание требуемого интервала времени обслуживани  за вки во врем  первого цикла обслуживани . На врем  считывани  этого интервала времени очередные за вки не пройдут на обслуживание, так как будет закрыт элемент И 10 нулевым потенциалом с выхода элемента И-НЕ 16.Это нулевой потенциал сформируетс  под воздействием единичных потенциалов, поступающих на входы элемента И-НЕ 1 с инверсного выхода триггера 2 и с выхода элемента ИЛИ 22.With the onset of the next time interval of the first service phase, element 11 will be opened with unit potentials from block 3, element 22 or from the direct output of trigger 25. Through this element 11 will begin to receive -countable pulses from generator 4 already at the subtracting input of counter 19, due to which will be the reading of the required time interval for the service of the application during the first cycle of the service. At the time of reading this time interval, the next applications will not pass for servicing, since element AND 10 will be closed with zero potential from the output of the AND-NOT element 16. This zero potential is formed under the influence of unit potentials entering the inputs of the AND-1 element from the inverse trigger output 2 and from the output of the element OR 22.

По окончании считывани  требуемого интервала времени обслуживани  на выходе элементов ИЛИ 22 и 27Upon completion of reading the required service time interval at the output of the elements OR 22 and 27

жащее генератор случайных импульсов обслуживани , генератор тактовых импульсов, триггер управлени , триггер выбора режимов, первый и второй триггеры, два формировател  импульсов , три реверсивных счетчика импульсов , четырнадцать элементов И, шесть элементов ИЛИ, два элементаstray random service pulse generator, clock pulse generator, control trigger, mode selection trigger, first and second triggers, two pulse shapers, three reversing pulse counters, fourteen AND elements, six OR elements, two elements

И-НЕ, первые входы первого, второго, третьего, четвертого и п того эле- менто в И объединены и  вл ютс  информационным входом устройства, входы триггера управлени   вл ютс  уп5 равл ющими входами устройства, аNAND, the first inputs of the first, second, third, fourth, and fifth elements in AND are combined and are the information input of the device, the inputs of the control trigger are the 5 equalizing inputs of the device, and

входы триггера выбора режимов  вл ютс  входами задани  режимов работы устройства, пр мой выход первого триггера соединен с вторым входом пер0 вого элемента И, выход которого подключен к первому входу первого элемента ИЛИ, выход которого соединен с первым входом шестого элемента И, выход которого подключен к нулевомуThe inputs of the mode selection trigger are the inputs for setting the device operation modes, the direct output of the first trigger is connected to the second input of the first AND element, the output of which is connected to the first input of the first OR element, the output of which is connected to the first input of the sixth AND element, the output of which is connected to zero

5 входу первого триггера, пр мой выход которого соединен с вторым входом шестого элемента И и с инверсным входом третьего элемента И, выход которого подключен к первому входу вто0 рого элемента ИЛИ, второй вход которого соединен с выходом п того элемента И, а выход подключен к первому входу седьмого элемента И, выход которого соединен с нулевым входом5 to the input of the first trigger, the direct output of which is connected to the second input of the sixth AND element and to the inverse input of the third AND element, the output of which is connected to the first input of the second OR element, the second input of which is connected to the output of the fifth AND element, and the output is connected to the first input of the seventh element And, the output of which is connected to the zero input

5 второго триггера, инверсный выход которого подключен к первому входу восьмого элемента И, второй вход которого и первый вход дев того элемента И соединены с выходом генератора так-5 of the second trigger, the inverse output of which is connected to the first input of the eighth element And, the second input of which and the first input of the ninth element And connected to the output of the generator also

0 товых импульсов, выходы восьмого и дев того элементов И подключены соответственно к суммирующему и вычитающему входам первого реверсивного счетчика импульсов, разр дные выходы0 output pulses, the outputs of the eighth and ninth elements And are connected respectively to the summing and subtracting inputs of the first reversible pulse counter, the bit outputs

сформируетс  нулевой потенциал,вслед- 45 которого соединены соответственно сa zero potential is formed, after which 45 are connected respectively to

Claims (1)

ствие чего формирователь 29 импульсов сформирует за вку, требующую обслуживани  второго цикла, которое .будет происходить по указанному алгоритму . При этом при наличии свободных мест очереди дл  за вок,ожидающих второго цикла обслуживани  (счетчик 31 находитс  не в предельном состо нии), устройство готово к прин тию на обслуживание первой фазы очередных за вок. Формула изобретени As a result, the pulse shaper 29 will form a claim that requires servicing the second cycle, which will occur according to the indicated algorithm. At the same time, if there are free places in the queue for applications that are waiting for the second service cycle (counter 31 is not in the limit state), the device is ready to accept for service the first phase of the next applications. Invention Formula Устройство дл  моделировани  систем массового обслуживани ,содер50A device for simulating queuing systems containing 50 5555 входами третьего элемента ИЛИ, инверсный выход триггера управлени  соединен с вторым входом п того элемента И, третий вход которого и третий вход-третьего элемента И подключены к пр мому выходу триггера выбора режимов, инверсный выход которого соединен с первыми входами дес того и одиннадцатого элементов И и вторым входом второго элемента И,выход которого подключен к второму входу первого элемента ИЛИ, третий вход которого соединен с выходом чет вертого элемента И, инверсный входthe inputs of the third element OR, the inverse output of the control trigger is connected to the second input of the fifth element AND, the third input of which and the third input of the third element AND are connected to the forward output of the mode selection trigger, the inverse output of which is connected to the first inputs of the tenth and eleventh elements AND and the second input of the second element AND, the output of which is connected to the second input of the first element OR, the third input of which is connected to the output of the even element AND, the inverse input которого соединены соответственно сwhich are connected respectively with входами третьего элемента ИЛИ, инверсный выход триггера управлени  соединен с вторым входом п того элемента И, третий вход которого и третий вход-третьего элемента И подключены к пр мому выходу триггера выбора режимов, инверсный выход которого соединен с первыми входами дес того и одиннадцатого элементов И и вторым входом второго элемента И,выход которого подключен к второму входу первого элемента ИЛИ, третий вход которого соединен с выходом четвертого элемента И, инверсный входthe inputs of the third element OR, the inverse output of the control trigger is connected to the second input of the fifth element AND, the third input of which and the third input of the third element AND are connected to the forward output of the mode selection trigger, the inverse output of which is connected to the first inputs of the tenth and eleventh elements AND and the second input of the second element AND, the output of which is connected to the second input of the first element OR, the third input of which is connected to the output of the fourth element AND, the inverse input которого подключен к пр мому выходу второго триггера и второму входу седьмого элемента И, выход двенадцатого элемента И соединен с суммирующим входом второго реверсивного счетчика импульсов, разр дные выходы которого подключены соответственно к входам четвертого элемента ИЛИ, единичные входы первогр и второго триггеров соединены соответственно с первым и вторым входами генератора случайных импульсов обслуживани , выход первого формировател  импульсов подключен к суммирующему входу третьего реверсивного счетчика импульсов, пр мые разр дные выходы которого соединены соответственно с входами п того элемента ИЛИ и шходами первого элемента И-НЕ,выход п того элемента ИЛИ подключен к первому входу тринадцатого элемента И, второй вход которого соединен с выходом второго элемента И-НЕ, а третий вход тринадцатого элемента И подключен к выходу второго формировател  импульсов, выход тринадцатого элемента И соединен с вторым входом дес того элемента И, отличающеес  тем, что, с целью расширени  функциональных возможностей устройства за счет моделировани  прерывани  обслуживани  в каждой из фаз двухфазной системы обслуживани , оно дополнительно содержит третий и четвертый элементы И-НЕ, седьмой и восьмой элементы ИЛИ и блок распределени  фаз обслуживани , состо щий из последовательно соединенных счетчика импульсов, дешифратора, наборного пол  и элемента ИЛИ, причем выход элемента ИЛИ блока распределени  фаз обслуживани  соединен с третьим входом восьмого элемента И, вторым входом дев того элемента И, первым входом четырнадцатого элемента И и инверсным входом двенадцатого элемента И устройства, а счетный вход счетчика импульсов блока распределени  фаз обслуживани  подключен к выходу генератора тактовых импульсов, перво му входу двенадцатого элемента И и второму входу четырнадцатого элемен-which is connected to the direct output of the second trigger and the second input of the seventh element And, the output of the twelfth element And is connected to the summing input of the second reversible pulse counter, the bit outputs of which are connected respectively to the inputs of the fourth element OR, the single inputs of the first and second trigger are connected respectively to the first and the second inputs of the random service pulse generator, the output of the first pulse generator is connected to the summing input of the third reversing pulse counter, The removable bit outputs of which are connected respectively to the inputs of the fifth OR element and the steps of the first NAND element, the output of the OR element 5 is connected to the first input of the thirteenth AND element, the second input of which is connected to the output of the second AND NAND element, and the third input of the thirteenth element I is connected to the output of the second pulse generator, the output of the thirteenth element I is connected to the second input of the tenth element I, characterized in that, in order to expand the functionality of the device by simulating an interrupt service in each of the phases of the two-phase service system, it additionally contains the third and fourth elements AND-NOT, the seventh and eighth elements OR, and the block for the distribution of the phases of service consisting of a series-connected pulse counter, a decoder, a dial floor and an OR element, and the output element The OR phase of the service phase distribution unit is connected to the third input of the eighth element AND, the second input of the ninth element AND, the first input of the fourteenth element AND, and the inverse input of the twelfth element AND devices And phase distribution count input pulse counter service block is connected to the output of the clock, the first entry mu twelfth AND gate and a second input of the fourteenth elements 10ten 1515 2020 2525 30thirty 3535 4040 4545 5050 та И, выход которого соединен с вычитающим входом второго реверсивного счетчика импульсов, инверсный вход триггера выбора режимов подключен к первому входу третьего элемента И-НЕ и первому входу четвертого элемента И-НЕ, выход которого соединен с третьим входом седьмого элемента И, а выход третьего элемента И-НЕ подключен к третьему входу шестого элемента И,четвертый вход которого соединен с выходом первого элемента И-НЕ, выходы четвертого элемента ИЛИ подключе- ны к второму входу третьего элемента И-НК, третьему входу четырнадцатого элемента И и первому входу шестого элемента ИЛИ, выход которого соединен с входом первого формировател  импульсов, а второй вход шестого элемента ИЛИ подключен к инверсному выходу первого триггера и второму входу двенадцатого элемента И, примой выход первого триггера соединен с четвертым входом четырнадцатого элемента И, выход третьего элемента ИЛИ подключен к второму входу четвертого элемента И-НЕ, третьему входу дев того элемента И и первому входу седьмого элемента ИЛИ, второй выход которого соединен с инверсным выходом второго триггера, а выход седьмого элемента ИЛИ соединен с входом второго формировател  импульсов, выход которого подключен к вычитающему входу третьего реверсивного счетчика, первый пр мой разр дный выход которого соединен с первым входом второго элемента И-НЕ, остальные входы которого подключены соответственно к инверсным разр дным выходам третьего реверсивного счетчика, начина  с второго инверсного разр дного выхода,пр мой выход второго триггера подключен к четвертому входу дев того элемента И, а выход первого формировател  импульсов соединен с вторым входом одиннадцатого элемента И, выход которого и выход дес того элемента И подключены соответственно к входам восьмого элемента ИЛИ, выход которого соединен с третьим входом второго элемента ИЛИ.And And, the output of which is connected to the subtractive input of the second reversible pulse counter, the inverse input of the mode selection trigger is connected to the first input of the third AND-NOT element and the first input of the fourth AND-NOT element, the output of which is connected to the third input of the seventh And element, and the third output element AND-NOT connected to the third input of the sixth element AND, the fourth input of which is connected to the output of the first element AND-NOT, the outputs of the fourth element OR are connected to the second input of the third AND-NC element, the third input of the fourteenth The AND element and the first input of the sixth OR element, whose output is connected to the input of the first pulse shaper, and the second input of the sixth OR element, is connected to the inverse output of the first trigger and the second input of the twelfth element AND, the output of the first trigger is connected to the fourth input of the fourteenth element AND, the output The third element OR is connected to the second input of the fourth element NAND, the third input of the ninth element AND and the first input of the seventh element OR, the second output of which is connected to the inverse output of the second t and the output of the seventh element OR is connected to the input of the second pulse driver, the output of which is connected to the subtractive input of the third reversible counter, the first direct discharge output of which is connected to the first input of the second element NAND, the remaining inputs of which are connected respectively to the inverse bit the outputs of the third reversible counter, starting with the second inverse discharge output, the direct output of the second trigger is connected to the fourth input of the ninth And element, and the output of the first driver is in connected with the second input of the eleventh element AND, the output of which and the output of the tenth element AND are connected respectively to the inputs of the eighth element OR, the output of which is connected to the third input of the second element OR. 3939 14817901481790
SU874282899A 1987-06-01 1987-06-01 Queueing system simulator SU1481790A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874282899A SU1481790A1 (en) 1987-06-01 1987-06-01 Queueing system simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874282899A SU1481790A1 (en) 1987-06-01 1987-06-01 Queueing system simulator

Publications (1)

Publication Number Publication Date
SU1481790A1 true SU1481790A1 (en) 1989-05-23

Family

ID=21318919

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874282899A SU1481790A1 (en) 1987-06-01 1987-06-01 Queueing system simulator

Country Status (1)

Country Link
SU (1) SU1481790A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1037268, кл. G 06 F 15/20, 1982. Авторское свидетельство СССР по за вке № 4122682/24,кл. G 06 F 15/20, 1986. *

Similar Documents

Publication Publication Date Title
SU1481790A1 (en) Queueing system simulator
RU1783539C (en) Device for modelling of queueing systems
SU1603397A1 (en) Device for modeling two-channel queuing system
SU1388885A1 (en) Device for simulating queueing systems
SU1388889A1 (en) Device for simulating queueing systems
SU1730643A1 (en) Device for simulation of queueing systems
SU1451720A1 (en) Device for modeling two-channel mass service system
SU1716534A1 (en) For simulation of queueing system
SU1418730A1 (en) Device for simulating mass service systems
SU1605252A1 (en) Device for modeling queuing system
SU1080146A1 (en) Device for simulating queueing systems
SU1476485A1 (en) Queueing system simulator
SU1341648A1 (en) Device for simulating request service process
SU1307464A2 (en) Stochastic device for simulating two-channel queueing system
SU1432551A1 (en) Device for simulating mass service systems
SU1038948A1 (en) Device for simulating systems of man-computer type
SU1683030A1 (en) Queuing system simulator
SU1242979A1 (en) Device for simulating man-machine systems
SU1550530A1 (en) Device for modeling queuing systems
SU1444802A1 (en) Device for simulating activity of human operator
SU1310838A1 (en) Device for simulating the queueing systems
SU1716533A1 (en) Device for simulation of systems of waiting system
SU1049916A1 (en) Device for simulating polyphase queueing system
SU1667100A1 (en) Device for queueing system simulation
SU1124320A1 (en) Device for simulating queueing system