SU1509927A1 - Device for modeling queuing systems - Google Patents
Device for modeling queuing systems Download PDFInfo
- Publication number
- SU1509927A1 SU1509927A1 SU874328213A SU4328213A SU1509927A1 SU 1509927 A1 SU1509927 A1 SU 1509927A1 SU 874328213 A SU874328213 A SU 874328213A SU 4328213 A SU4328213 A SU 4328213A SU 1509927 A1 SU1509927 A1 SU 1509927A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- service channel
- trigger
- service
- Prior art date
Links
- 230000002441 reversible effect Effects 0.000 claims abstract description 7
- 238000004088 simulation Methods 0.000 claims description 3
- 230000005764 inhibitory process Effects 0.000 claims 1
- 230000001934 delay Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Изобретение относитс к вычислительной технике, а именно к специализированным средствам электронного моделировани , предназначенным дл исследовани систем массового обслуживани . Цель изобретени - повышение точности моделировани . В устройство, содержащее блок случайных задержек, генератор случайного потока импульсов, элемент запрета, первый и второй элементы И, реверсивный счетчик числа зан тых каналов, дешифратор, элемент случайной задержки, введены третий элемент И, триггер, элемент НЕ. 2 ил.The invention relates to computer technology, in particular to specialized electronic modeling tools for studying queuing systems. The purpose of the invention is to improve the accuracy of modeling. A device containing a block of random delays, a generator of a random stream of pulses, a prohibition element, the first and second elements AND, a reversible counter of the number of occupied channels, a decoder, a element of random delay, the third element AND, a trigger, the element NOT are entered. 2 Il.
Description
Изобретение относитс к вычислительной технике и может быть использовано при исследовании систем массового обслуживани (СМО).The invention relates to computing and can be used in the study of queuing systems (QS).
Цель изобретени - повышение точности моделировани The purpose of the invention is to improve the accuracy of modeling
На фиГо1 приведена схема устройства; на фиг о 2 - схема блока случайных временных задержек оFigure 1 shows the device; Fig 2 shows a block diagram of random time delays about
Устройство содержит генератор 1 слз айного потока импульсов, элемент 2 запрета, реверсивный счетчик 3 числа зан тых каналов, счетчик 4 общего числа за вок, счетчик 5 потер нных за вок, первый 6, второй 7 и третий 8 элементы И, триггер 9, элемент НЕ 10, дешифратор 11, элемент 12 случайной задержки и блок 13 случайных задержек.The device contains a generator 1 slz ay stream of pulses, an element 2 of the ban, a reversible counter 3, the number of occupied channels, a counter 4 of the total number of submissions, a counter 5 of lost submissions, the first 6, second 7 and third 8 elements And, trigger 9, element NOT 10, a decoder 11, a random delay element 12 and a block of 13 random delays.
Блок 13 содержит (К-1) узлов 14 управлени , в которые.вход т элементы . ШШ-НЕ 15, ИЛИ 16 и НЕ 17. Кроме того, в блок вход т элемент К каналов 18 обслуживани , которые содержат элемент И 19, триггер 20, элемент 21 случайной задержки, элемент ИЛИ 22, элемент 23 запрета. Блок содержит также элемент ИЛИ 24, выход 25.Block 13 contains (K-1) control nodes 14 into which the elements are input. SH-NOT 15, OR 16 and NOT 17. In addition, the block includes element K of service channels 18, which contain an AND 19 element, a trigger 20, a random delay element 21, an OR element 22, a prohibition element 23. The block also contains the element OR 24, output 25.
Устройство работает в двух режимах: в первом режиме моделируетс одновременна подготовка всех каналов системы после поступлени за вки в свободную сист ему по закону, отличному от закона обслуживани за вок Во втором режиме работы устройство имитирует обработку (тое одновременное начало обслуживани ) за вок, Поступивших за врем подготовки, а затем и последующих за вок по мере их поступлени вплоть до освобождени системы, С поступлением первой за вки в систему режимы работы устройства повтор ютс .The device operates in two modes: in the first mode, simultaneous preparation of all channels of the system is simulated after entering the application in a free system according to a law different from the service law of the order. In the second mode of operation, the device simulates the processing (that is the simultaneous start of service). the preparation time and then the subsequent applications as they arrive until the system is released, With the first application entering the system, the modes of operation of the device are repeated.
Примером рассмотренного типа СМО вл ютс многопроцессорные вычислительные системы, в которых после поступлени за вки в свободную систему необходимо врем на приведение ее в рабочее состо ниеAn example of the considered type of QS is multiprocessor computing systems, in which, after entering the application in a free system, time is needed to bring it to the working state.
СПSP
оabout
D ЮD Yu
31503150
Устройство работает следующим образоМоThe device works as follows
Импульсы от генератора I поступают через открытый элемент 2 запрета на суммирующий вход реверсивного счетчика 3 числа зан тых каналов.Поступление импульса на суммирующий вход реверсивного счетчика зан тых каналов увеличивает его код на еди- йицу, что означает зан тие одного каналаThe pulses from the generator I are received through the open element 2 of the prohibition on the summing input of the reversible counter 3, the number of occupied channels. The arrival of a pulse to the summing input of the reversible counter of the occupied channels increases its code by one, which means that one channel
Имитаци режима работы одновременной подготовкой всех каналов производитс по следующей схеме. Пред- положим, что система полностью свободна от за вок и триггер 9 находитс в единичном состо нии Тогда импульс , по вившийс на выходе генератора 1, проходит через открытые эле- менты 2 запрета и элемент И 7, устанавливает в нулевое состо ние триггер 9, исключа прохождение последующих импульсов через элемент И 8 на вход блока 13, и поступает на элемент 12, который моделирует случайное врем подготовки всех каналов По истечении этого времени сигнал , имитирующий завершение подготовки каналов, с выхода элемента 12 устанавливает в единичное состо ние триггер 9 и поступает в блок 13 (вход г), имитиру начало обслуживани всех за вок, поступивших за врем подготовки каналов, и переход системы во второй режим работЫсКоли- чество за вок, пришедших за врем подготовки определ етс единичным сигналом на одном из управл ющих входов блока 13, св занных с дешиф- ратором 11„ Работа устройства в первом режиме возможна лишь в случае, когда система бьша свободна, что определ етс сигналом на нулевом выходе дешифратора 11 о Если хот бы один канал системы зан т, то отсутствие сигнала на нулевом выходе дешифратора 11 закрывает элемент И 7, что запрещает прохождение импульса на вход элемента 12,имитирующий подго- товку всех каналов обслуживани Simulation of the operation mode by simultaneous preparation of all channels is performed as follows. Suppose that the system is completely free from the order and the trigger 9 is in a single state. Then the impulse that appeared at the output of the generator 1 passes through the open interdiction elements 2 and the element 7, sets the trigger 9 to the zero state, excluding the passage of subsequent pulses through element 8 to the input of block 13, and enters element 12, which models the random preparation time of all channels. After this time, the signal simulating the completion of channel preparation, from the output of element 12, sets to one state trigger 9 and enters unit 13 (input g), simulating the start of service of all applications received during the preparation of channels, and the transition of the system to the second operation mode. The number of applications received during preparation is determined by a single signal at one of the the control inputs of the unit 13 connected to the decoder 11 “The device can operate in the first mode only if the system is free, which is determined by the signal at the zero output of the decoder 11 o If at least one channel of the system is occupied, then signal to zero m output of the decoder 11 closes the element And 7, which prohibits the passage of a pulse to the input of the element 12, imitating the preparation of all service channels
Во втором режиме импульсы от генератора 1 проход т через открытые элемент 2 запрета и элемент И 8 на блок 13, имитирующий слзгчайную обра ботку за вок, и, по вл сь на его выходе через врем , равное случайной де тельности обработки, поступают на вычитаю1ций вход счетчика 3 числаIn the second mode, the pulses from the generator 1 pass through the open prohibition element 2 and the AND 8 element to the block 13, imitating the simple processing of the application, and, appearing at its output after a time equal to the random processing activity, arrive at the subtraction input counter 3 numbers
зан тых каналов, списыва из него единицу, что означает освобождение одного канала в системе.unused channels, which means the release of one channel in the system.
В момент времени, когда все каналы зан ты, на последнем выходе дешифратора 11 по вл етс сигнал, закрывающий элемент 2 запрета и открывающий элемент И 6, При этом импульсы от генератора 1 проход т через элемент И 6, имитиру поток за вок,получивших отказ в обслуживании, число которых подсчитываетс счетчиком 5. В счетчике 4 в процессе работы устройства накапливаетс суммарное число поступивших в систему за вок„At the time when all channels are busy, at the last output of decoder 11 a signal appears that closes the prohibition element 2 and the opening element AND 6. At the same time, the pulses from generator 1 pass through the element 6, imitating the flow of rejected requests in service, the number of which is counted by the counter 5. In the counter 4, during the operation of the device, the total number of applications received into the system accumulates
Блок 13 случайных временных задержек имитирует групповое обслз живание за вок, поступивших в свободную систему за врем разогрева, а затем - обслуживание случайного потока за вок по мере их поступлени и освобождени каналов оBlock 13 of random time delays simulates group service of a bill received in a free system during the warm-up time, and then servicing a random flow of the bill as they arrive and the channels release
Блок 13 работает след5тощим обра- зом,Block 13 works as follows
В исходном состо нии триггеры 20 всех каналов обслуживани наход тс в единичном состо нии, обеспечива наличие нулевых потенциалов на выходах элементов.ИЛИ - НЕ 15 с номерами , большими или равными номеру канала , которому принадлежит триггер о Следовательно , элемент И 19 первого канала открыт, а элементы И 19 остальных каналов закрыты дл сигналов с одиночного входа блокаIn the initial state, the triggers 20 of all service channels are in a single state, ensuring the presence of zero potentials at the element outputs. OR — NOT 15 with numbers greater than or equal to the channel number that the trigger belongs to. Consequently, the AND 19 element of the first channel is open, And elements And 19 other channels are closed for signals from a single block input
В начале каждого цикла имитируетс одновременное начало обслуживани группы за вок, поступивших в свободный блок о с этой целью в блок поступают сигнал на групповой вход Г и сигнал на один из управл ющих входов У,определ ющий количество за вок в группеAt the beginning of each cycle, a simultaneous start of service for a group of applications received in a free block is simulated for this purpose, the signal to the group input G and a signal to one of the control inputs Y defining the number of applications in the group
Сигнал с группового входа Г блока через элемент ИЛИ 22 первого канала I8 проходит на нулевой вход триггера 20 и на вход элемента 21 задержки первого канала, имитиру тем самым начало обслуживани первой за вки Этот же сигнал последовательно проходит через открытые элементы 23 запрета и элементы 22 на входы элементов 22 и нулевые входы триггеров 20 последующих каналов, пока на его пути не встретитс элемент 23 запрета,закрытый сигналом с 5гправл ки(его входа У; (где i - количество за вок вThe signal from the group input G of the block through the OR element 22 of the first channel I8 passes to the zero input of the trigger 20 and to the input of the delay element 21 of the first channel, thereby simulating the start of service of the first application. The same signal passes through the open prohibition elements 23 and elements 22 the inputs of the elements 22 and the zero inputs of the flip-flops of the 20 subsequent channels, until on its way the element 23 of the ban meets, blocked by a signal from the 5-direction (its input is Y; (where i is the number of quotations
группе). Это обеспечивает имитацию начала обслуживани группы за вок, поступивших в свободный блок, после чего блок обеспечивает имитацию обслуживани случайного потока за вок по мере их поступлени на его одиночный вход. Если свободен один из каналов 18, предположим с номером j, то его триггер 20 находитс в единичном состо нии, и сигналом с его выхода (через последовательность элементов ИЛИ 16 и ИЛИ-НЕ групп управлени ) исключаетс возможность прохождени импульса, имитирующего поступление за вки на входы каналов с большими номерамио Импульс, поступивший, на одиночный вход (при условии зан тости каналов с меньшими, чем ,1 номерами ) , через открытьгй элемент И 19 j-ro канала и элемент ИЛИ 22 .проходит на нулевой вход триггера 20 . и на вход элемента 21-0 До тех пор,пока импульс не по витс на выходе эле I мента 21., триггер 20 соответствзто- щего канала находитс в нулевом состо нии , обеспечива закрытое состо ние (через элементы.НЕ 17 и ИЛИ-НЕ 15) элемента И 19оgroup). This provides a simulation of the start of service of a group of applications received in a free block, after which the unit provides an imitation of the random flow of service of the application as they arrive at its single input. If one of the channels 18 is free, suppose with the number j, then its trigger 20 is in the single state, and the signal from its output (through the sequence of the OR 16 and OR-NOT elements of the control groups) excludes the possibility of a pulse simulating the arrival of the application inputs of channels with large numbers The impulse received on a single input (assuming channels with less than 1 numbers are occupied) through the open element AND 19 of the j-ro channel and the element OR 22. passes to the zero input of the trigger 20. and to the input element 21-0. As long as the pulse does not appear at the output of element I. 21, the trigger 20 of the corresponding channel is in the zero state, providing a closed state (through the elements. NO. 15) item and 19o
Очередной импульс с одиночного входа аналогичным образом поступает на вход свободного канала с меньшим номером.The next impulse from a single input is similarly fed to the input of a free channel with a lower number.
Импульс элемента 21 ,. по вившийс на выходе через врем , равное случайной длительности обслуживани ,устанавливает в единичное состо ние соответствующий триггер 20 и одновременно через элемент ИЛИ 24 поступает на выход блока.Pulse element 21,. The output at a time equal to the random service duration sets the corresponding trigger 20 to one state and simultaneously through the OR 24 element enters the output of the block.
Статистические характеристики функционировани СМО вычисл ютс известными методами.The statistical characteristics of the operation of the QS are calculated by known methods.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874328213A SU1509927A1 (en) | 1987-11-17 | 1987-11-17 | Device for modeling queuing systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874328213A SU1509927A1 (en) | 1987-11-17 | 1987-11-17 | Device for modeling queuing systems |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1509927A1 true SU1509927A1 (en) | 1989-09-23 |
Family
ID=21336299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874328213A SU1509927A1 (en) | 1987-11-17 | 1987-11-17 | Device for modeling queuing systems |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1509927A1 (en) |
-
1987
- 1987-11-17 SU SU874328213A patent/SU1509927A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 517896, кло G 06 F 15/20, 1973 Авторское свидетельство СССР № 1229769, кЛо G 06 F 15/20, 1984, * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1509927A1 (en) | Device for modeling queuing systems | |
RU2043655C1 (en) | Device for analysis of operations of queuing systems | |
RU2024929C1 (en) | Device for simulating mass queueing systems | |
RU2041492C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU723580A1 (en) | Device for simulating mass service systems | |
SU1660012A1 (en) | Query service simulator | |
RU2050586C1 (en) | Random number generator | |
SU858000A1 (en) | Mass servicing system simulating device | |
SU521569A1 (en) | Queue Simulator | |
RU2042187C1 (en) | Device for generation of uniform distribution of random integers | |
RU2041489C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU736110A1 (en) | Device for simulating mass service systems | |
SU1503044A1 (en) | Device for modeling mass service systems | |
RU1774344C (en) | Mass service system simulator | |
SU1405071A1 (en) | Device for simulating mass service systems | |
SU1418730A1 (en) | Device for simulating mass service systems | |
RU2041491C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU752307A1 (en) | Random code generator | |
SU1229769A1 (en) | Device for simulating queueing system | |
SU1520536A1 (en) | Device for modeling queueing systems | |
RU2020577C1 (en) | Device for modelling system of mass service | |
SU517896A1 (en) | Device for simulating queuing systems | |
SU1001101A1 (en) | Device for distributing tasks for processors | |
SU1005067A1 (en) | Mass service system simulating device | |
SU1218394A1 (en) | Device for simulating process for computer-aided problem solving |