SU1683030A1 - Queuing system simulator - Google Patents

Queuing system simulator Download PDF

Info

Publication number
SU1683030A1
SU1683030A1 SU894673959A SU4673959A SU1683030A1 SU 1683030 A1 SU1683030 A1 SU 1683030A1 SU 894673959 A SU894673959 A SU 894673959A SU 4673959 A SU4673959 A SU 4673959A SU 1683030 A1 SU1683030 A1 SU 1683030A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
inputs
elements
counter
Prior art date
Application number
SU894673959A
Other languages
Russian (ru)
Inventor
Александр Григорьевич Тягунов
Наталья Владимировна Маркова
Людмила Абрамовна Сурпина
Дмитрий Николаевич Шапошников
Original Assignee
Войсковая часть 03444
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 Войсковая часть 03444 filed Critical Войсковая часть 03444
Priority to SU894673959A priority Critical patent/SU1683030A1/en
Application granted granted Critical
Publication of SU1683030A1 publication Critical patent/SU1683030A1/en

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может бы гь использовано дл  исследовани  динамики функционировани  специализированных вычислительных машин динамической архитектуры, допускающих автоматическое многоканальное распараллеливание заданий. Цель изобретени  - расширение области применени  устройства. Устройство дл  моделировани  систем массового обслуживани  (СМО) содержит п тнадцать элементов И, четыре элемента ИЛИ, элемент ИЛИ-НЕ, три элемента НЕ, реверсивный счетчик, четыре схемы сравнени , вычитающий счетчик, два триггера, три суммирующих счетчика, группу элементов случайных временных задержек , группу триггеров, генератор случайной последоватепьности импульсов, генератор тактовых импульсов, группы И и входы задани  различных условий и характеристик работы устройства. Изобретение позвол ет расширить область применени  устройства за счет обеспечени  возможности оперативного задани  и изменени  условий моделировани  и характеристик многоканальной СМО. 1 ил, fefESXrThe invention relates to computing and can be used to study the dynamics of the operation of specialized computers of a dynamic architecture that allow automatic multichannel parallelization of tasks. The purpose of the invention is to expand the field of application of the device. A device for simulating queuing systems (QS) contains fifteen AND elements, four OR elements, OR-NOT element, three NOT elements, reversible counter, four comparison circuits, a subtracting counter, two triggers, three totalizing counters, a group of random time delay elements. , a group of triggers, a generator of a random sequence of pulses, a generator of clock pulses, a group of And and the inputs of the task of various conditions and characteristics of the device. The invention allows to expand the field of application of the device by providing the ability to quickly set and change the simulation conditions and characteristics of multi-channel QS. 1 silt, fefESXr

Description

Изобретение относитс  к вычислительной технике и может быть использовано дл  исследовани  динамики функционировани  специализированных вычислительных машин динамической архитектуры, допускающих автоматическое многоканальное распараллеливание заданий.The invention relates to computing and can be used to study the dynamics of the functioning of specialized computers of a dynamic architecture that allow automatic multichannel parallelization of tasks.

Цель изобретени  - расширение области применени  устройства за счет оперативного задани , контрол  и изменени  условий моделировани  и характеристик многоканальных систем массового обслуживани .The purpose of the invention is to expand the field of application of the device due to the operational setting, monitoring and changing of the simulation conditions and characteristics of multi-channel queuing systems.

На чертеже изображена блок-схема устройства .The drawing shows a block diagram of the device.

Устройство содержит первый 1, второй 2, третий 3, четвертый 4, п тый 5, шестой 6,The device contains the first 1, second 2, third 3, fourth 4, fifth 5, sixth 6,

седьмой 7 элементы i/1, формирователь 8 импульсов, элемент ИЛИ-НЕ 9, восьмой элемент И 10, третий 11, второй 12, первый 13 элементы НЕ, реверсивный счетчик 14 длины очереди, первую схему 15 сравнени , входы 16 задани  допустимой длины очереди , входы 17 задани  числа повторений обслуживани , вычитающий счетчик 18, первый 19, второй 20, третий 21 элементы ИЛИ, первый триггер 22, группу элементов 23 случайных временных задержек, группу триггеров 24, второй триггер 25, вход 26 запуска, счетчик 27 потер нных за вок, счетчик 28 поступивших за вок, генератор 29 случайной последовательности импульсов , дев тый 30 и двенадцатый 31 элементы И, счетчик 32 времени моделировани ,Seventh 7 i / 1 elements, shaper 8 pulses, OR-NOT 9 element, eighth element AND 10, third 11, second 12, first 13 elements NOT, reversible counter 14 queue lengths, first comparison circuit 15, inputs 16 specifying the allowable queue length , inputs 17 sets the number of repetitions of service, subtracting counter 18, first 19, second 20, third 21 elements OR, first trigger 22, group of elements 23 random time delays, group of triggers 24, second trigger 25, start input 26, counter 27 lost for wok, counter 28 received for wok, generator 29 random last pulse sequence, 30 ninth and twelfth AND gates 31, counter 32 time simulation,

третью схему 33 сравнени , входы 34 задани  времени моделировани , четвертую схему 35 сравнени , входы 36 задани  числа потер нных за вок, входы 37 задани  числа поступивших за вок, вторую схему 38 сравнени , входы 39 задани  числа каналов, зле- менгы И 40 первой группы, элементы И 41 второй группы, генератор 42 тактовых импульсов , одиннадцатый 43, тринадцатый 44, четырнадцатый 45, п тнадцатый 46, дес тый 47 элементы И, четвертый элемент ИЛИ 48, вход 49 останова работы по числу потер нных за вок, вход 50 останова работы по истечении времени модеплровани , вход 51 останова работы из-за превышени  длины очереди и вход 52 останов работы по числу поступивших за вок.the third comparison circuit 33, the inputs 34 of the simulation time, the fourth comparison circuit 35, the inputs 36, the number of lost orders, the 37 inputs, the number of incoming applications, the second comparison circuit 38, the inputs 39, the number of channels, the gold And 40 groups, elements AND 41 of the second group, generator 42 clock pulses, eleventh 43, thirteenth 44, fourteenth 45, fifteenth 46, tenth 47 elements AND, fourth element OR 48, input 49 stops working by the number of lost orders, input 50 stop operation after the time of the mode, the input 51 work stops due to exceeding the queue length and input 52 work stops according to the number of incoming charges.

Присутствие разрешающего (высокого уровн ) сигнала на одном или нескольких входах 49,....52 означает возможность пре- краще и  моделировани  при выполнении соответствующих условий: число потер нных за вок ровно или превысило допусти мое, число поступивших за вок равно или превысило допустимое, длина очереди равна или превысила допустимую, истекло врем  цикла моделировани .The presence of a permitting (high level) signal at one or several inputs 49, .... 52 means that it is possible to stop and simulate if the relevant conditions are met: the number of lost loans is exactly or exceeds the allowable, the number of incoming requests is equal to or exceeded the allowed , the queue length is equal to or exceeded the allowed one, the simulation cycle time has elapsed.

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

Перед началом смередного цикла моделировани  счетчики 14, 18, 27, 28, 32, триггеры 22, 25 м трип еры 24 наход тс  в нулевых состо ни х. По входам 17 записываетс  код числа повторений заданий при обработке одной за вки дл  данного цикла моделировани . По входам 16 заноситс  код допустимой длины очереди за вок. По входам 39 задаетс  код числа каналов распараллеливани  при обработке заданий. По входам 37 заноситс  код допустимого числа за вок, которые могут поступить на данном цикле моделировани . По входам 36 заноситс  код допустимого числа не- оОслухснных за вок на данном цикле моделировани . По входам 34 заноситс  код времени цикла моделировани , По входам 49,,.., 52 задаетс  единичный код в зависимости от необходимых условий, при выполнении которых может произойти прекращение моделировани , которое, в свою очередь, определ ютс  цел ми моделировани  на данном цикле,Before the start of the next simulation cycle, the counters 14, 18, 27, 28, 32, triggers 22, 25 m triples 24 are in zero states. Input 17 records the code of the number of job repetitions when processing one application for a given simulation cycle. On inputs 16, the code of the permissible length of the queue for the wok is entered. The inputs 39 define a code for the number of parallel channels during job processing. At the inputs 37, the code of the permissible number of applications that can be received on this simulation cycle is entered. At inputs 36, the code of the permissible number of un-audited requests on a given simulation cycle is entered. The inputs 34 enter the code of the simulation cycle time. According to the inputs 49 ,, .., 52, a single code is specified depending on the necessary conditions under which the simulation can be terminated, which, in turn, is determined by the simulation objectives for this cycle,

С приходом по входу 26 разрешающего сигнала начала моделировани  этот сигнал с выхода открытого элемента И 43 поступает на вход установки единичного состо ни  триггера 25. Высокий уровень сигнала с выхода единичного состо ни  триггера 25 разрешает прохождение сигналов с генератора 42 тактовых импульсов через элемент И 31With the arrival at the input 26 of the enabling signal of the start of the simulation, this signal from the output of the open element I 43 enters the installation input of the single state of the trigger 25. The high level of the signal from the single state output of the trigger 25 permits the passage of signals from the generator 42 clock pulses through the element 31

на счетчик 32, который подсчитывает текущее врем  цикла моделировани , Одновременно сигнал с выхода единичного состо ни  триггера 25 разрешает прохождение сигналов и с генератора 29 случайной временной последовательности импульсов через элемент И 30 с выхода которого, так как очереди за вок на обслуживание еще нет, и на выходе схемы 15 сравнени  запре0 щающий сигнал, а все обслуживающие каналы свободны, первый импульс случайной временной последовательности через открытые элементы И 1 и 2 поступает на вход установки единичного состо ни  триггераto counter 32, which counts the current simulation cycle time, at the same time the signal from the single-state output of the trigger 25 allows the signals and the random generator 29 from the generator 29 to pass through the element 30 from the output of which, since there is no queue for maintenance yet, and at the output of the comparison circuit 15, the forbidding signal, and all the serving channels are free, the first pulse of a random time sequence through the open elements And 1 and 2 is fed to the input of the installation of a single state igger

5 22, перевод  его в единичное состо ние Низкий (запрещающий) уровень ситнзла с инверсного выхода триггера 22 закрывает элемент И 2, ч го свидетелоствует о том. что параллельно работающие каналы обслужи0 занил зан ты обслуживанием последовательности заданий (алгоритмов), св занных с поступлением за вки, в режиме распараллеливани . Причем распараллеливание выполнени  каждого задани  идет только по5 22, translating it into a single state. The low (prohibiting) level of the sitzl from the inverse output of the trigger 22 closes the AND 2 element, which witnesses. that the concurrently working channels of the service are occupied by the maintenance of the sequence of tasks (algorithms) associated with the receipt of the application in the parallelization mode. Moreover, the parallelization of each task is only for

5 тем каналам, номера которых определены напичием единиц (высокого уровн  сигнала) в разр дах единичного кода поданного на вход 39. Одновременно импульс от генератора 29 через элемент ИЛИ 20 поступает на5 to those channels whose numbers are determined by writing units (high signal level) in the bits of the unit code applied to the input 39. At the same time, the pulse from the generator 29 through the element OR 20 goes to

0 вход вычитающего счетчика 18, производ  запись кода числа повторений заданий (алгоритмов ) с входов 17. Этот же импульс через элемент ИЛИ 19 поступает через те элементы И 41, на входах которых присутст5 вуют разрешающие сигналы с входов 39, чем определ етс  необходимое количество каналов распараллеливани  на данном цикле моделировани , на входы установки единичных состо ний соответствующих0 input of the subtractive counter 18, recording the code of the number of repetitions of tasks (algorithms) from the inputs 17. The same pulse through the element OR 19 comes through those elements AND 41, the inputs of which have resolving signals from the inputs 39, which determines the required number of channels parallelization on a given simulation cycle, on the inputs of setting the unit states of the corresponding

0 триггеров 24, устанавлива  их в единичные состо ни . Одновременно этот импульс с выхода элемента ИЛИ 19 через открытые в соответствии с кодом, хранимым на входе 39, элементы И 40 поступает на входы соот5 ветствующих элементов 23 случайных временных задержек, имитирующих случайные времена обслуживани  распараллеленного задани  (алгоритма) по необходимому числу каналов, Через случайные времена, равные0 triggers 24, setting them to single states. At the same time, this impulse from the output of the element OR 19 through the elements 40 opened in accordance with the code stored at input 39, And 40 is fed to the inputs of the corresponding elements 23 random time delays simulating the random service times of the parallelized task (algorithm) over the required number of channels, Through random times equal

0 продолжительности обслуживани , в каждом из каналов распараллеливани  по вл ютс  импульсы, перевод щие соответствующие триггеры 24 в нулевые состо - ни , Как только на выходах нулевых0 service times, in each of the parallel channels, pulses appear that bring the corresponding triggers 24 to zero states. As soon as the outputs are zero

5 состо ний всех триггеров 24 установ тс  высокие уровни сигналов, на выходе элементов И 7 по вл етс  также высокий уровень сигнала. Этот сигнал поступает на вычитающий вход счетчика 18, по переднему фронту которого из значени  кода наThe 5 states of all the triggers 24 are set to high levels of signals, and the output of the And 7 elements also shows a high level of the signal. This signal is fed to the subtracting input of counter 18, the leading edge of which from the code value is

счетчике 18 вычитаетс  единица, что свидетельствует о выполнении одного задани  (алгоритма) в процессе обслуживани  за вки в режиме распараллеливани . Одновременно по сигналу с выхода элемента И 7 формирователь 8 импульсов формирует на своем выходе импульс, который через открытый элемент И 6 и элемент ИЛИ 19 вновь поступает на входы элементов И 41 и 40. Таким образом, процесс имитации реализации задани  (алгоритма) при обработке за вки в режиме распараллеливани  канала повтор етс  такое число раз, которое определ етс  кодом, предварительно записанным в счетчике 18. В момент, когда после очередного вычитани  значение кода на счетчике 18 становитс  равным нулю, на выходе элемента ИЛИ-НЕ 9 по вл етс  сигнал , закрывающий элемент И 6 и открывающий элемент И 5, сигнал с выхода которого устанавливает триггер 22 в нулевое состо ние (разрешаетс  прохождение импульсов случайной временной последовательности от генератора 29 через элемент И 2), что свидетельствует об освобождении каналов обслуживани  от реализации предыдущей за вки.the counter 18 subtracts one, which indicates that one task (algorithm) is completed during the servicing process of the application in the parallelization mode. At the same time, the signal from the output of the element And 7 shaper 8 pulses generates a pulse at its output, which through the open element And 6 and element OR 19 is again fed to the inputs of elements And 41 and 40. Thus, the process of simulating the implementation of the task (algorithm) during processing in the channel parallelization mode is repeated the same number of times as determined by the code previously recorded in the counter 18. At the moment when after the next subtraction the code value on the counter 18 becomes equal to zero, at the output of the element OR-HE 9 The signal closing element 6 and opening element 5, the signal from the output of which sets the trigger 22 to the zero state (the passage of pulses of a random time sequence from generator 29 through element 2 is allowed), which indicates the release of the service channels from the previous vki.

В случае, когда каналы зан ты обслуживанием за вки (последовательности заданий ), импульсы от генератора 29 не проход т через элемент И 2, а через открытый элемент И 3 поступают на суммирующий вход реверсивного счетчика 14, увеличива  значение кода, хранимого в нем, и имитиру  тем самым постановку поступивших за вок в очередь на обслуживание.In the case when the channels are occupied by servicing the application (sequence of tasks), the pulses from generator 29 do not pass through the element 2, and through the open element 3 they enter the summing input of the reversible counter 14, increasing the value of the code stored in it and thereby imitating the formulation of the incoming stock in the queue for service.

В том случае, когда за вки в очереди на обслуживание есть (на реверсивном счетчике 14 хранитс  код, отличный от нулевого), на выходе элемента ИЛИ 21 присутствует сигнал, открывающий элемент И 4 и закрывающий через элемент НЕ 12 элемент И 5. В данном случае при завершении обслуживани  за вки во всех каналах (значение кода на вычитающем счетчике 18 нулевое, а на выходе элемента ИЛИ-МЕ 9 существует сигнал , открывающий элемент И 4 на выходе формировател  8 импульсов по вл етс  сигнал, который через открытый элемент И 4 поступает на вычитающий вход реверсивного счетчика, уменьша  значение его кода на единицу и имитиру  тем самым сн тие одной за вки из очереди и постановку ее на обслуживание. Одновременно сигнал с выхода элемента И 4 через элемент ИЛИ 20 осуществл ет вновь запись кода числа повторений заданий (алгоритмов) при обслуживании за вки в вычитающий счетчик 18, В то же врем  сигнал с выхода элемента И 4 поступает через элемент ИЛИ 19 на входыIn the case when there are applications in the service queue (a non-zero code is stored on the reversible counter 14), the output of the OR 21 element is a signal that opens the AND 4 element and closes the NOT 12 element AND 5 through the element. In this case when the service is completed in all channels (the code value on subtractive counter 18 is zero, and at the output of the element OR-ME 9 there is a signal that opens the element AND 4 at the output of the driver 8, a signal appears that through the open element 4 subtractive roar of the passive counter, reducing its code value by one and thus simulating the removal of one application from the queue and placing it for service. At the same time, the signal from the output of the AND 4 element through the OR element 20 re-writes the code for the number of repetitions of tasks (algorithms) during maintenance applications in the subtractive counter 18, At the same time, the signal from the output of the element AND 4 enters through the element OR 19 to the inputs

элементов И 41 и 40, начина  вновь имитацию случайного времени обслуживани  очередного распараллеленного задани  по необходимому числу каналов.elements 41 and 40, starting again imitating the random service time of the next parallelized task along the required number of channels.

В случае, когда значение кода длиныIn the case where the length code value

очереди за вок на счетчике 14 сравн етс  со значением кода допустимой длины очереди , на выходе схемы 15 сравнени  по вл етс  сигнал, открывающий элементы И 10,The queue of the queuing at the counter 14 is compared with the code value of the permissible length of the queue; the output of the comparison circuit 15 is a signal opening the AND 10 elements,

0 46 и закрывающий через элемент НЕ 11 элемент И 1. В результате импульсы от генератора 29 начинают поступать на счетчик 27, где формируетс  код числа потер нных за вок из-за отсутстви  мест в очереди за 5 вок на данном цикле моделировани , если только на второй вход элемента И 46 не подан разрешающий сигнал с входа 51, который разрешает прекращение цикла моделировани  о достижении длины очереди0 46 and the element 11 that closes through the element 11. As a result, the pulses from the generator 29 begin to flow to the counter 27, where the code of the number of lost orders is formed due to the absence of places in the queue for 5 woks on a given simulation cycle, if only the second input element And 46 is not given the enable signal from the input 51, which allows the termination of the simulation cycle on reaching the queue length

0 за вок требуемого или большего размера, чем заданный.0 required or larger than specified.

С началом цикла моделировани  (триггер 25 в единичном состо нии) импульсы с генератора 29 поступают на суммирующийWith the beginning of the simulation cycle (trigger 25 in the single state), the pulses from the generator 29 arrive at the summing

5 вход счетчика 28, где формируетс  код числа поступивших за вок на обслуживание на данном цикле моделировани .5, the input of the counter 28, where the code of the number of incoming service requests for a given simulation cycle is formed.

Окончание цикла моделировани  происходит в следующих случа х (при возник0 новении следующих событий).The end of the simulation cycle occurs in the following cases (when the following events occur).

Если код на счетчике 32 сравн лс  (или превысил) со значением кода времени цикла моделировани , хранимого на входах 34, и присутствует разрешающий сигнал с вхо5 да 50 на втором входе элемента И 44. то в этом случае на выходе схемы 33 сравнени  присутствует сигнал высокого (разрешающего ) уровн , который через открытый элемент И 44 и элемент ИЛИ 48 поступает наIf the code on the counter 32 is compared (or exceeded) with the code value of the simulation cycle time stored at inputs 34, and there is an enable signal from input 50 and the second input of AND 44. In this case, a high signal is present at the output of the comparison circuit 33 (permitting) level, which through the open element AND 44 and the element OR 48 enters

0 установку Б нулевое состо ние триггера 25, низкий уровень сигнала с. единичного выхода которого закрывает элементы И 31 и 30. Если код числа поступивших за вок за цикл моделировани , хран щийс  на счет5 чике 28, сравн лс  (или превысил)с кодом допустимого числг за вок с входа 37, а на входе 52 присутствует разрешающий сигнал , то в этом случае сигнал высокого уровн  с выхода схемы 38 сравнени  через0 set B zero trigger state 25, low signal level c. the unit output of which closes the elements 31 and 30. If the code of the number received for the simulation per cycle, stored on the counter 28, is compared (or exceeded) with the code of the admissible number from input 37 and input 52 in this case, the high level signal from the output of the comparison circuit 38 through

0 открытый элемент И 47 и элемент ИЛИ 48 поступает на установку нулевого состо ни  триггера 25. Далее работа устройства аналогична предыдущему случаю.0 an open element AND 47 and an element OR 48 enters the setting of the zero state of the trigger 25. Next, the operation of the device is similar to the previous case.

Есг.и значение кода числа необслужен5 ных за вок, формируемого на счетчике 27, сравн лс  (или превысил) с кодом допустимого числа необслуженных за вок на входе 36, а на входе 49 существует высокий уровень сигнала, то в этом случае с выхода схемы 35 сравнени  сигнал высокого уровн If the code of the number of unserved serv- ices formed at the counter 27, is compared (or exceeded) with the code of the admissible number of unserved servants at input 36, and at the input 49 there is a high signal level, then in this case from the output of circuit 35 Comparison High Signal

через открытый элемент Л 45 и элемент ИЛИ ч8 устанавливает триггер 25 в нулевое состо ние.through the open element L 45 and the element OR ch8 sets the trigger 25 to the zero state.

Если код длины очереди за вок на обслуживание на счетчике 14 сравн лс  (или превысил) с кодом допустимой длины очереди , хранимым на ехэде 16, а на входе 51 существует сигнал высокого уровн , то в этом случае с выхода схемы 15 сравнени  сигнал высокого уровн  через элемент И 46 и элемент ИЛИ 48 устанавливает триггер 25 в нулевое состо ние, чем оканчивает цикл моделировани .If the code of the queue for service requests on the counter 14 is compared (or exceeded) with the code of the allowable queue length stored on exhed 16, and a high level signal exists at the input 51, then in this case the high level signal from the output of the comparison circuit 15 the element AND 46 and the element OR 48 sets the trigger 25 to the zero state, which ends the simulation cycle.

Окончание цикла -мг 4елироваки  происходит при наступлении самого раннего из вышеперечисленных абытий.The end of the cycle -mg 4ylirovaki occurs at the onset of the earliest of the above abyti.

Формула it   о б р е т е н и  Formula it is about

Устройство дл  моделировани  систем массового обслуживани , содержащее генератор случайной последовательности им- пупьсов за вок, восемь элементов И, три элемента НЕ, элемент ИЛИ-НЕ, формирователь импульсов, первый триггер, три элемента ИЛИ, группу триггеров, группу элементов случайной временной задержки, вычитающий счетчик, реверсивный счетчик длины очереди, счетчик поступивших за вок , счетчик потер нных за вок, первую схему сравнени , причем выход первого элемента И соединен с первыми входами второго и третьего элементов И, выход второго элемента И подключен к первым входам первого и второго элементов ИЛИ и единичному входу первого триггера, пр мой и инверсный выходы которого соединены 1 соответственно с вторыми входами второго и третьего элементов И, выход третьего элемента И соединен с суммирующим входом реверсивного счетчика длины очереди; вычитающий вход которого и вторые входы первого и второго элементов ИЛИ подключены к выходу четвертого элемента И, пер- т й ПУОП, которого и первые входы п того и шестого элементов И соединены с выходом формировател  импульсов, вход которого и вычитающий вход вычитающего счетчика соединены с выходом седьмого элемента И, входы которого подключены соответственно к инверсным выходам триггеров группы, разр дные входы вычитающего счетчика  вл ютс  входами задани  числа повторений обслуживани  устройства, вход разрешени  записи вычитающего счетчика подключен к выходу второго элемента ИЛИ, а разр дные выходы вычитающего счетчика соединены соответственно с входами элемента ИЛИ-НЕ, выход которого подключен к вторым входам четвертого и п того элементов И и входу первого элемента НЕ, выход которого соединен с вторым входом шестого элемента И выход которого подключен к третьему входу первого элемента ИЛИ, выход п того элемента И соединен с нулевым входом первого триггера,A device for simulating queuing systems containing a random sequence of impedances, eight elements AND, three elements NOT, an element OR-NOT, a pulse shaper, a first trigger, three elements OR, a group of triggers, a group of elements of a random time delay, subtracting counter, reversible queue length counter, incoming order counter, lost order counter, first comparison circuit, the output of the first element AND is connected to the first inputs of the second and third elements AND, the output to orogo gate AND is connected to first inputs of first and second OR input of the first unit and trigger the forward and inverse outputs of which are connected respectively one to the second inputs of the second and third AND gates, and a third element connected to the output of summing inputs reversible queue length counter; the subtracting input of which and the second inputs of the first and second elements OR are connected to the output of the fourth element AND, the first SSWM, of which both the first inputs of the fifth and sixth elements I are connected to the output of the pulse former, the input of which and the subtracting input of the counter reading are connected to the output the seventh And element, the inputs of which are connected respectively to the inverse outputs of the group triggers, the bit inputs of the subtracting counter are inputs of setting the number of device service repetitions, the write enable input is subtractive The counter is connected to the output of the second element OR, and the bit outputs of the subtracting counter are connected respectively to the inputs of the element OR NOT, the output of which is connected to the second inputs of the fourth and fifth elements AND and the input of the first element NOT whose output is connected to the second input of the sixth element And the output of which is connected to the third input of the first element OR, the output of the fifth element I is connected to the zero input of the first trigger,

разр дные выходы реверсивного счетчика длины очереди подключены соответственно к входам третьего элемента ИЛИ и информационным входам первой группы первой схемы сравнени , информационные входыthe bit outputs of the reversing queue length counter are connected respectively to the inputs of the third OR element and information inputs of the first group of the first comparison circuit, information inputs

0 второй группы которой  вл ютс  входами задани  допустимой длины очереди устройства , выход третьего элемента ИЛИ подключен к входу второго элемента НЕ и третьему входу четвертого элемента И, а выход второ5 го элемента НЕ подключен к третьему входу п тою элемента И выход Равно первой схемы сравнени  соединен с первым входом восьмого элемента И и входом третьего элемента НЕ, выход которого подключен к0 of the second group of which are the inputs for setting the allowable queue length of the device, the output of the third element OR is connected to the input of the second element NOT and the third input of the fourth element AND, and the output of the second element is NOT connected to the third input by the fifth element AND the output Equal to the first comparison circuit connected with the first input of the eighth element And and the input of the third element NOT, the output of which is connected to

0 первому входу первого элемента И, а выход восьмого элемента И соединен со счетным входом счетчика потер нных за вок, отличающеес  тегл, что, с целью расширени  области его применени  за счет оперэтив5 ного задани , контрол  и изменени  условий моделировани  v, характеристик многоканальных систем массового обслуживани , оно дополнительно содержит первую и вторую группу элементов И, с0 to the first input of the first element I, and the output of the eighth element I connected to the counting input of the lost order counter, characterized by a tag that, in order to expand its area of application by operating, controlling and changing the simulation conditions v, characteristics of multichannel mass systems service, it additionally contains the first and second group of elements And, with

0 дев того по п тнадцатый элементы И, генератор тактовых импульсов, второй триггер, счетчик времени моделировани , четвертый элемент ИЛИ, вторую, третью и четвертую схемы сравнени , причем выход генератора0, the ninth and fifteenth elements AND, the clock pulse generator, the second trigger, the simulation time counter, the fourth OR element, the second, third and fourth comparison circuits, the generator output

5 случайной последовательности импульсов за вок соединен с первым входом дев того элемента И, выход которого подключен к второму входу первого элемента И, второму входу восьмого элемента И и счет0 ному входу счетчика поступивших за вок, разр дные выходы которого подключены соответственно к информационным входам первой группы второй схемы сравнени  информационные входы второй группы кото5 рой  вл ютс  входами задани  числа поступивших за вок устройства, а выход Равно второй схемы сравнени  соединен с первым входом дес того элемента И, второй вход которого  вл етс  входом остано0 ва работы устройства по числу поступивших за вок, а выход дес того элемента И подключен к первому входу четвертого элемента ИЛИ, выход которого соединен с единичным входом второго триггера, инвер5 сный выход которого подключен к первому входу одиннадцатого элемента И, второй вход которого  вл етс  входом запуска устройства , а выход одиннадцатого элемента И подключен к нулевому входу второго триггера , пр мой выход которого подключен к второму входу дев того элемента И и первому входу двенадцатого элемента И, второй вход которого соединен с выходом генератора тактовых импульсов, а выход двенадцатого элемента И подключен к счетному входу счетчика времени моделировани , разр дные выходы которого соединены соответственно с информационными входами первой группы третьей схемы сравнени , информационные входы второй группы которой  вл ютс  входами задани  времени моделировани  устройства, а выход Равно третьей схемы сравнени  подключен к первому входу тринадцатого элемента И, второй вход которого  вл етс  входом останова работы устройства по истечении аремени моделировани , а выход тринадцатого элемента И соединен с вторым входом четвертого элемента ИЛИ, третий и четвертый входы которого подключены соответст- венно к выходам четырнадцатого и п тнадцатого элементов И, разр дные выходы счетчика потер нных за вок соединены соответственно с информационными входами первой группы четвертой схемы сравнени , информационные входы второй5 random sequence of pulses of the order is connected to the first input of the ninth element I, the output of which is connected to the second input of the first element And, the second input of the eighth element And and the counting input of the counter of the incoming application, the bit outputs of which are connected respectively to the information inputs of the first group the second comparison circuit the information inputs of the second group of which are the inputs for specifying the number of incoming applications for the device, and the output Equals the second comparison circuit to the first input of the tenth element And, the second input of which is the input of the device operation stop by the number of incoming orders, and the output of the tenth AND element is connected to the first input of the fourth OR element, the output of which is connected to the single input of the second flip-flop, the inverted output of which is connected to the first eleventh input element And, the second input of which is the device start input, and the output of the eleventh element And is connected to the zero input of the second trigger, the direct output of which is connected to the second input of the ninth element And and the first input two of the eleventh element And, the second input of which is connected to the output of the clock pulse generator, and the output of the twelfth element And is connected to the counting input of the simulation time counter, the discharge outputs of which are connected respectively to the information inputs of the first group of the third comparison circuit, the information inputs of the second group of which are inputs set the simulation time of the device, and the output Equals the third comparison circuit connected to the first input of the thirteenth element AND, the second input of which is the input of After the simulation time expired, and the output of the thirteenth element AND is connected to the second input of the fourth element OR, the third and fourth inputs of which are connected respectively to the outputs of the fourteenth and fifteenth elements AND, the discharge outputs of the counter for the distant wok are connected to information inputs of the first group of the fourth comparison scheme, information inputs of the second

группы которой  вл ютс  входами задани  числа потер нных за вок устройства, а выход Равно четвертой схемы сравнени  подключен к первому входу четырнадцатогоthe groups of which are the inputs for specifying the number of lost orders of the device, and the output Equal to the fourth comparison circuit is connected to the first input of the fourteenth

элемента И, второй вход которого  вл етс  входом останова работы устройства по числу потер нных за вок, выход Равно первой схемы сравнени  соединен с первым входом п тнадцатого элемента И, второйAnd, the second input of which is the input of stopping the operation of the device by the number of lost orders, the output Equals the first comparison circuit connected to the first input of the fifteenth And element, the second

вход которого  вл етс  входом останова работы устройства из-за превышении длины очереди, выход седьмого элемента И подключен к третьему входу одиннадцатого элемента И, а выход первого элемента ИЛИthe input of which is the stop input of the device due to exceeding the queue length, the output of the seventh AND element is connected to the third input of the eleventh AND element, and the output of the first element OR

соединен с первыми входами элементов И первой и второй групп, вторые входы одноименных элементов И первой и второй групп объединены и  вл ютс  входами числа каналов, выходы элементов И первойconnected to the first inputs of the elements of the first and second groups, the second inputs of the same elements of the first and second groups are combined and are the inputs of the number of channels, the outputs of the elements of the first

группы соединены соответственно с входами запуска устройства элементов случайной временной задержки группы, выходы которых соединены соответственно с нулевыми входами триггеров группы, единичные входы которых соединены соответственно с выходами элементов И второй группы.the groups are connected respectively to the device start inputs of the elements of a random time delay of the group, the outputs of which are connected respectively to the zero inputs of the group triggers, the single inputs of which are connected respectively to the outputs of the AND elements of the second group.

3232

ii

5L5L

$$

-h

1313

Claims (1)

Формула изобретенияClaim Устройство для моделирования систем массового обслуживания, содержащее генератор случайной последовательности импульсов заявок, восемь элементов И, три элемента НЕ, элемент ИЛИ-НЕ, формирователь импульсов, первый триггер, три элемента ИЛИ, группу триггеров, группу элементов случайной временной задержки, вычитающий счетчик, реверсивный счетчик длины очереди, счетчик поступивших заявок, счетчик потерянных заявок, первую схему сравнения, причем выход первого элемента И соединен с первыми входами второго и третьего элементов И, выход второго элемента И подключен к первым входам первого и второго элементов ИЛИ и единичному входу первого триггера, прямой и инверсный выходы которого соединены соответственно с вторыми входами второго и третьего элементов И, выход третьего элемента И соединен с суммирующим входом реверсивного счетчика длины очереди;' вычитающий вход которого и вторые входы первого и второго элементов ИЛИ подключены к выходу четвертого элемента И, первый вход которого и первые входы пятого и шестого элементов И соединены с выходом формирователя импульсов, вход которого и вычитающий вход вычитающего счетчика соединены с выходом седьмого элемента И, входы которого подключены соответственно к инверсным выходам триггеров группы, разрядные входы вычитающего счетчика являются входами задания числа повторений обслуживания устройства, вход разрешения записи вычитающего счетчика подключен к выходу второго элемента ИЛИ. а разрядные выходы вычитающего счетчика соединены соответственно с входами элемента ИЛИ-НЕ, выход которого подключен к вторым входам четвертого и пятого элементов Ий входу первого элемента НЕ, выход которого соединен с вторым вхо дом шестого элемента И, выход которого подключен к третьему входу первого элемента ИЛИ, выход пятого элемента И соединен с нулевым входом первого триггера, разрядные выходы реверсивного счетчика длины очереди подключены соответственно к входам третьего элемента ИЛИ и информационным входам первой группы первой схемы сравнения, информационные входы второй группы которой являются входами задания допустимой длины очереди устройства, выход третьего элемента ИЛИ подключен к входу второго элемента НЕ и третьему входу четвертого элемента И, а выход второго элемента НЕ подключен к третьему входу пятого элемента И, выход Равно первой схемы сравнения соединен с первым входом восьмого элемента И и входом третьего элемента НЕ, выход которого подключен к первому входу первого элемента И, а выход восьмого элемента И соединен со счетным входом счетчика потерянных заявок, отличающееся тем, что, с целью расширения области его применения за счет оперативного задания, контроля и изменения условий моделирования и характеристик многоканальных систем массового обслуживания, оно дополнительно содержит первую и вторую группу элементов И, с девятого по пятнадцатый элементы И, генератор тактовых импульсов, второй триггер, счетчик времени моделирования, четвертый элемент ИЛИ. вторую, третью и четвертую схемы сравнения, причем выход генератора случайной последовательности импульсов заявок соединен с первым входом девятого элемента И, выход которого подключен к второму входу первого элемента И, второму входу восьмого элемента И и счетному входу счетчика поступивших заявок, разрядные выходы которого подключены соответственно к информационным входам первой группы второй схемы сравнения, информационные входы второй группы которой являются входами задания числа поступивших заявок устройства, а выход Равно второй схемы сравнения соединен с первым входом десятого элемента И, второй вход которого является входом останова работы устройства по числу поступивших заявок, а выход десятого элемента И подключен к первому входу четвертого элемента ИЛИ, выход которого соединен с единичным входом второго триггера, инверсный выход которого подключен к первому входу одиннадцатого элемента И, второй вход которого является входом запуска устройства, а выход одиннадцатого элемента И подключен к нулевому входу второго триггера, прямой выход которого подключен к вто рому входу девятого элемента И и первому входу двенадцатого элемента И, второй вход которого соединен с выходом генератора тактовых импульсов, а выход двенадцатого элемента И подключен к счетному входу счетчика времени моделирования, разрядные выходы которого соединены соответственно с информационными входами первой группы третьей схемы сравнения, информационные входы второй группы которой являются входами задания времени моделирования устройства, а выход Равно третьей схемы сравнения подключен к первому входу тринадцатого элемента И, второй вход которого является входом останова работы устройства по истечении времени моделирования, а выход тринадцатого элемента И соединен с вторым входом четвертого элемента ИЛИ, третий и четвертый входы которого подключены соответственно к выходам четырнадцатого и пятнадцатого элементов И, разрядные выходы счетчика потерянных заявок соединены соответственно с информационными входами первой группы четвертой схемы сравнения, информационные входы второй группы которой являются входами задания числа потерянных заявок устройства, а выход Равно четвертой схемы сравнения подключен к первому входу четырнадцатого элемента И, второй вход которого является входом останова работы устройства по числу потерянных заявок, выход Равно первой схемы сравнения соединен с первым входом пятнадцатого элемента И, второй вход которого является входом останова работы устройства из-за превышении длины очереди, выход седьмого элемента И подключен к третьему входу одиннадцатого элемента И, а выход первого элемента ИЛИ соединен с первыми входами элементов И первой и второй групп, вторые входы одноименных элементов И первой и второй групп объединены и являются входами числа каналов, выходы элементов И первой группы соединены соответственно с входами запуска устройства элементов случайной временной задержки группы, выходы которых соединены соответственно с нулевыми входами триггеров группы, единичные входы которых соединены соответственно с выходами элементов И второй группы.A device for modeling queuing systems containing a generator of a random sequence of request pulses, eight AND elements, three NOT elements, an OR-NOT element, a pulse shaper, a first trigger, three OR elements, a group of triggers, a group of elements of a random time delay, a subtracting counter, a reversible counter a queue length counter, a counter of received applications, a counter of lost applications, a first comparison circuit, the output of the first element And connected to the first inputs of the second and third elements And, the output of the second th AND gate is connected to first inputs of first and second OR input of the first unit and the trigger, direct and inverse outputs of which are connected respectively to the second inputs of the second and third AND gates, the output of the third AND element is connected to the reversing input of summing queue length counter; ' the subtracting input of which and the second inputs of the first and second elements OR are connected to the output of the fourth element And, the first input of which and the first inputs of the fifth and sixth elements And are connected to the output of the pulse shaper, the input of which and the subtracting input of the subtracting counter are connected to the output of the seventh element And, the inputs which are connected respectively to the inverted outputs of the group triggers, the bit inputs of the subtracting counter are inputs of the job number of repetitions of servicing the device, the input enable recording subtracting Meters withstand connected to the output of the second OR gate. and the discharge outputs of the subtracting counter are connected respectively to the inputs of the OR-NOT element, the output of which is connected to the second inputs of the fourth and fifth elements. The I input of the first element is NOT, the output of which is connected to the second input of the sixth AND element, the output of which is connected to the third input of the first OR element , the output of the fifth element AND is connected to the zero input of the first trigger, the bit outputs of the reverse counter of the queue length are connected respectively to the inputs of the third element OR and the information inputs of the first group of the first a comparison circuit, the information inputs of the second group of which are inputs of setting the allowable queue length of the device, the output of the third element OR is connected to the input of the second element NOT and the third input of the fourth element AND, and the output of the second element is NOT connected to the third input of the fifth element And, the output is equal to the first circuit comparison is connected to the first input of the eighth AND element and the input of the third element NOT, the output of which is connected to the first input of the first AND element, and the output of the eighth element AND is connected to the counting input of the pot counter lost applications, characterized in that, in order to expand the scope of its application due to the operational task, control and change of modeling conditions and characteristics of multichannel queuing systems, it additionally contains the first and second group of elements And, from the ninth to fifteenth elements And, a clock generator pulses, second trigger, simulation time counter, fourth element OR. the second, third and fourth comparison schemes, and the output of the random order pulse generator is connected to the first input of the ninth element And, the output of which is connected to the second input of the first element And, the second input of the eighth element And and the counting input of the counter of incoming applications, the bit outputs of which are connected respectively to the information inputs of the first group of the second comparison scheme, the information inputs of the second group of which are inputs of the job number of applications received by the device, and the output is the comparison circuit is connected to the first input of the tenth element And, the second input of which is the stop input of the device according to the number of applications received, and the output of the tenth element And is connected to the first input of the fourth element OR, the output of which is connected to a single input of the second trigger, whose inverse output is connected to the first input of the eleventh element And, the second input of which is the start input of the device, and the output of the eleventh element And is connected to the zero input of the second trigger, the direct output of which is connected n to the second input of the ninth element And and the first input of the twelfth element And, the second input of which is connected to the output of the clock generator, and the output of the twelfth element And is connected to the counting input of the simulation time counter, the bit outputs of which are connected respectively to the information inputs of the first group of the third circuit comparison, the information inputs of the second group of which are inputs of the task of modeling the time of the device, and the output is equal to the third comparison circuit connected to the first input of the thirteenth element And, the second input of which is the shutdown input of the device after simulation time, and the output of the thirteenth element And is connected to the second input of the fourth element OR, the third and fourth inputs of which are connected respectively to the outputs of the fourteenth and fifteenth elements And, the bit outputs of the counter of lost applications are connected respectively, with the information inputs of the first group of the fourth comparison scheme, the information inputs of the second group of which are inputs of the job number of lost applications devices, and the output is equal to the fourth comparison circuit connected to the first input of the fourteenth element And, the second input of which is the input to stop the operation of the device according to the number of lost applications, the output is equal to the first comparison circuit connected to the first input of the fifteenth element And, the second input of which is the input to stop the device due to exceeding the length of the queue, the output of the seventh AND element is connected to the third input of the eleventh AND element, and the output of the first OR element is connected to the first inputs of the And elements of the first and second groups, the second inputs of the elements of the same name And the first and second groups are combined and are the inputs of the number of channels, the outputs of the elements And of the first group are connected respectively to the start inputs of the device elements of the random time delay of the group, the outputs of which are connected respectively to the zero inputs of the triggers of the group, the unit inputs of which are connected respectively with the outputs of the elements And the second group.
SU894673959A 1989-04-06 1989-04-06 Queuing system simulator SU1683030A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU894673959A SU1683030A1 (en) 1989-04-06 1989-04-06 Queuing system simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU894673959A SU1683030A1 (en) 1989-04-06 1989-04-06 Queuing system simulator

Publications (1)

Publication Number Publication Date
SU1683030A1 true SU1683030A1 (en) 1991-10-07

Family

ID=21439518

Family Applications (1)

Application Number Title Priority Date Filing Date
SU894673959A SU1683030A1 (en) 1989-04-06 1989-04-06 Queuing system simulator

Country Status (1)

Country Link
SU (1) SU1683030A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1462347, кл. G 06 F 15/20, 1987. Авторское свидетельство СССР № 1604042,кл.G 06 F 15/20, 1989. *

Similar Documents

Publication Publication Date Title
SU1683030A1 (en) Queuing system simulator
SU1730643A1 (en) Device for simulation of queueing systems
SU930320A1 (en) Device for simulating service phase in mass servicing systems
SU1196893A1 (en) Device for simulating queueing systems
SU1481790A1 (en) Queueing system simulator
SU1305701A1 (en) Device for simulating the queueing systems
SU1550530A1 (en) Device for modeling queuing systems
RU2041492C1 (en) Device for solving task of analysis of operations in queuing systems
SU1418730A1 (en) Device for simulating mass service systems
SU1272340A1 (en) Device for simulating the queueing systems with relative priorities
SU1580563A1 (en) Device for checking equal-weight code
SU1716535A1 (en) Queue system simulator
SU1667100A1 (en) Device for queueing system simulation
SU1267430A1 (en) Device for simulating man-machine systems
SU1363197A1 (en) Device for simulating service unit
SU1612309A1 (en) Device for modeling queueing systems
SU1476485A1 (en) Queueing system simulator
SU1660012A1 (en) Query service simulator
SU898433A1 (en) Device for control of interrogation servicing
SU1282153A1 (en) Device for simulating the queueing systems
SU1241251A1 (en) Device for simulating queueing systems
SU1345193A1 (en) Multichannel device for connecting users to common line
RU1837288C (en) Device for dynamic priority
SU1633529A1 (en) Device for majority sampling of asynchronous signals
SU1624472A1 (en) Device for simulating queueing systems