RU2041491C1 - Device for solving task of analysis of operations in queuing systems - Google Patents
Device for solving task of analysis of operations in queuing systems Download PDFInfo
- Publication number
- RU2041491C1 RU2041491C1 SU4906751A RU2041491C1 RU 2041491 C1 RU2041491 C1 RU 2041491C1 SU 4906751 A SU4906751 A SU 4906751A RU 2041491 C1 RU2041491 C1 RU 2041491C1
- Authority
- RU
- Russia
- Prior art keywords
- output
- inputs
- group
- counter
- input
- Prior art date
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
Изобретение относится к вычислительной технике, предназначено для статистического моделирования систем массового обслуживания (СМО). The invention relates to computer technology, is intended for statistical modeling of queuing systems (QS).
Целью изобретения является повышение точности устройства за счет учета выполнения требуемого количества элементарных операций для завершения обслуживания каждой заявки и выполнения случайного количества таких операций каждым из исполнителей. The aim of the invention is to improve the accuracy of the device by taking into account the implementation of the required number of elementary operations to complete the service of each application and perform a random number of such operations by each of the performers.
Достигается это тем, что устройство для решения задачи анализа работы СМО дополнительно содержит группу триггеров, счетчик, формирователь импульсов, триггер, элементы ИЛИ, И, задержки, запрета. Причем, выход второго элемента ИЛИ соединен с входами второго триггера и триггеров группы, выходы которых соединены с входами шестого элемента И, выход которого через формирователь импульсов соединен с входом элемента задержки, выходы которого и второго триггера соединены с входами четвертого элемента запрета выход которого соединен с входами четвертых счетчика и элемента ИЛИ, выход которого соединен с входами генераторов случайных импульсов группы, выходы формирователей импульсов группы соединены с входами соответствующих триггеров группы, выход третьего счетчика соединен с входами четвертого элемента ИЛИ и второго триггера. This is achieved by the fact that the device for solving the problem of analyzing the operation of the QS additionally contains a group of triggers, a counter, a pulse shaper, a trigger, elements OR, AND, delay, prohibition. Moreover, the output of the second OR element is connected to the inputs of the second trigger and the triggers of the group, the outputs of which are connected to the inputs of the sixth element And, the output of which through the pulse former is connected to the input of the delay element, the outputs of which and the second trigger are connected to the inputs of the fourth inhibit element, the output of which is connected to the inputs of the fourth counter and the OR element, the output of which is connected to the inputs of the random group pulse generators, the outputs of the group pulse shapers are connected to the inputs of the corresponding trigger group, the third counter output is connected to the fourth element and the second inputs of OR trigger.
На фиг. 1 представлена функциональная схема устройства; на фиг. 2 схема блока моделирования выполнения работ. In FIG. 1 shows a functional diagram of a device; in FIG. 2 block diagram of the simulation of work.
Устройство содержит генератор 1 случайного потока импульсов, счетчики 2, 3, элементы ЗАПРЕТ 4, 5, 6, элементы И 7, 8, 9, 10, 11, триггер 12, элементы ИЛИ 13, 14, реверсивный счетчик 15, счетчики 16, 17, генератор 18 тактовых импульсов, элемент ЗАПРЕТ 19, элемент ИЛИ 20, многовходовый элемент И 21, генератор 22 одиночных импульсов, элемент 23 задержки, триггер 24, группу блоков 25i моделирования выполнения работ, каждый из которых содержит блок 26 случайной временной задержки, генератор 27 случайной временной длительности, элемент 28 задержки, элемент И 29, триггер 30; элемент ИЛИ 31. The device contains a generator 1 of a random pulse stream, counters 2, 3, elements FORBID 4, 5, 6, elements AND 7, 8, 9, 10, 11, trigger 12, elements OR 13, 14, reversible counter 15, counters 16, 17 , clock generator 18, bans element 19, OR element 20, multi-input element And 21, single pulse generator 22, delay element 23, trigger 24, a group of work
Устройство работает следующим образом. The device operates as follows.
Когда на входе нет очереди и все каналы обслуживания свободны, триггер 12 находится в состоянии, когда на управляющем входе элемента ЗАПРЕТ 6 сигнал отсутствует и он открыт. Импульс от генератора 1 через открытые элементы ЗАПРЕТ 4 и 6 поступает на первый вход триггера 12, а через элемент ИЛИ 14 на входы всех блоков 25i моделирования выполнения работ и второй вход триггера 24. Триггер 12 переключается, закрывая тем самым элемент ЗАПРЕТ 6 и открывая элемент И 11. Триггер 24 открывает элемент ЗАПРЕТ 19. When there is no queue at the input and all service channels are free, trigger 12 is in a state when there is no signal at the control input of the element BAN 6 and it is open. The pulse from the generator 1 through the open elements BAN 4 and 6 is fed to the first input of the trigger 12, and through the OR element 14 to the inputs of all
До окончания обслуживания следующие импульсы генератора 1, имитирующие заявки, поступают на суммирующий вход реверсивного счетчика 15, имитируя образование очереди. Until the end of the service, the next pulses of the generator 1, simulating the application, are fed to the summing input of the reverse counter 15, simulating the formation of the queue.
В каждом блоке 25i моделирования выполнения работ с поступлением на блоке сигнала запускается блок 26 случайной временной задержки, а триггер 30 устанавливается в положение, при котором потенциал на втором выходе блока равен нулю. Через промежуток времени, моделирующий время выполнения работ исполнителем, на линии 26 появляется импульс, который запускает генератор 27 импульсов случайной длительности, который формирует импульс длительности, пропорциональной количеству элементарных операций, которые выполняет соответствующий исполнитель. Этот импульс поступает на первый вход элемента И 29 и на первый вход триггера 30, с выхода которого поступает высокий потенциал на второй выход блока 25i. Импульс от генератора 18 тактовых импульсов через элемент 28 временной задержки и открытый для прохождения импульсов элемент И 29 поступают на счетный вход счетчика 16 количества выполненных работ. Элемент 28 временной задержки обеспечивает сдвиг по фазе импульсов, поступающих на вход счетчика 16 от различных блоков 25i моделирования выполнения работ. Сигнал со второго выхода блоков 25i моделирования выполнения работ поступает на вход элемента И 21 (i ).In each
При достижении числом подсчитанных импульсов счетчика 16 заданного значения, соответствующего требуемому количеству выполненных работ, на его выходе появляется импульс переполнения, который поступает на первый вход триггера 24, высокий потенциал с выхода которого закрывает элемент ЗАПРЕТ 19, через элемент ИЛИ 20, элемент И 10 этот импульс поступает на вычитающий вход реверсивного счетчика 15, уменьшая очередь на единицу, а через элемент И 9, ИЛИ 14 на повторный запуск блоков 25i моделирования работ и второй вход триггера 24, который открывает элемент ЗАПРЕТ 19. Перед запуском блок 25i моделирования выполнения работ устанавливается импульсом переполнения с выхода счетчика 16 в исходное состояние (i ).When the number of counted pulses of counter 16 reaches the set value corresponding to the required number of work performed, an overflow pulse appears at its output, which is fed to the first input of trigger 24, the high potential from the output of which closes element BAN 19, through element OR 20, element And 10 this the pulse arrives at the subtracting input of the reverse counter 15, decreasing the queue by one, and through the AND 9, OR 14 element to restart the
Если число подсчитанных импульсов счетчика 16 не достигло заданного значения, на выходе счетчика сигнал не появится. В этом случае, после выполнения моделирования всех работ с выхода элемента И 21 поступает сигнал на вход генератора одиночных импульсов, с выхода которого импульс через элемент 23 задержки и через открытый элемент ЗАПРЕТ 19 поступает на вход элемента ИЛИ 20 и на счетный вход счетчика 17 количества недообслуженных заявок, увеличивая содержимое счетчика на единицу. С выхода элемента ИЛИ 20 импульс поступает на вход элемента И 10 и второй вход блока 25i моделирования выполнения работ. Аналогично импульсу переполнения счетчика 16, этот импульс уменьшает очередь на единицу, приводит в исходное состояние блоки 25i моделирования выполнения работ и повторяет их запуск. If the number of counted pulses of the counter 16 has not reached the set value, the signal will not appear at the output of the counter. In this case, after all the work has been simulated, the output of the element And 21 receives a signal at the input of the single pulse generator, the output of which is transmitted through the delay element 23 and through the open element BAN 19 to the input of the OR element 20 and to the counting input of the counter 17 of the number of underserved applications, increasing the contents of the counter by one. From the output of the OR element 20, a pulse is supplied to the input of the And element 10 and the second input of the work
Элемент 23 задержки необходим для разделения во времени момента одновременного появления импульса переполнения на выходе счетчика 16 и импульса на выходе элемента И 21 с целью недопущения записи в счетчик 17 обслуженной заявки. Если в очереди нет заявок, то сигнал с выхода элемента ИЛИ 20 через элемент ЗАПРЕТ 5 переключает триггер 12, открывая элемент ЗАПРЕТ 6 и закрывая элемент И 11. The delay element 23 is necessary for separating in time the moment of the simultaneous occurrence of an overflow pulse at the output of the counter 16 and a pulse at the output of the And 21 element in order to prevent recording of the served order in the counter 17. If there are no requests in the queue, the signal from the output of the OR 20 element through the FORBID 5 element switches the trigger 12, opening the FORBID 6 element and closing the And 11 element.
При заполнении всей очереди на выходе элемента И 8 появляется сигнал, который закрывает элемент ЗАПРЕТ 4 и открывает элемент И 7. При этом новые заявки поступают на вход счетчика 3 потерянных заявок. When filling the entire queue at the output of the And 8 element, a signal appears that closes the Forbidden 4 element and opens the And 7 element. In this case, new applications are received at the input of the counter 3 of lost applications.
Устройство позволяет к концу эксперимента определять такие характеристики СМО, как вероятность обслуживания, вероятность отказа в обслуживании. По показателям реверсивного счетчика 15, зафиксированным в процессе моделирования, может быть определена средняя длина очереди в системе. The device allows by the end of the experiment to determine such QS characteristics as the probability of service, the probability of denial of service. According to the indicators of the reversible counter 15 recorded during the simulation, the average queue length in the system can be determined.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU4906751 RU2041491C1 (en) | 1991-01-31 | 1991-01-31 | Device for solving task of analysis of operations in queuing systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU4906751 RU2041491C1 (en) | 1991-01-31 | 1991-01-31 | Device for solving task of analysis of operations in queuing systems |
Publications (1)
Publication Number | Publication Date |
---|---|
RU2041491C1 true RU2041491C1 (en) | 1995-08-09 |
Family
ID=21557982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU4906751 RU2041491C1 (en) | 1991-01-31 | 1991-01-31 | Device for solving task of analysis of operations in queuing systems |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU2041491C1 (en) |
-
1991
- 1991-01-31 RU SU4906751 patent/RU2041491C1/en active
Non-Patent Citations (2)
Title |
---|
1. Авторское свидетельство СССР N 1462347, кл. G 06F 15/20, 1987. * |
2. Авторское свидетельство СССР N 1305701, кл. G 06F 15/20, 1985. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2041491C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1741145A2 (en) | Device for simulating queueing systems | |
RU2043655C1 (en) | Device for analysis of operations of queuing systems | |
RU2041489C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1387009A1 (en) | Queueing system simulator | |
SU1612309A1 (en) | Device for modeling queueing systems | |
RU2408068C1 (en) | Device for simulating mass service system | |
RU2041492C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1580392A1 (en) | Device for modeling queueing systems | |
RU2041488C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1716535A1 (en) | Queue system simulator | |
RU2012053C1 (en) | Device for analysis of networks | |
RU2041495C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1120342A1 (en) | Device for simulating man-machine systems | |
SU1305701A1 (en) | Device for simulating the queueing systems | |
SU1282153A1 (en) | Device for simulating the queueing systems | |
SU1418730A1 (en) | Device for simulating mass service systems | |
RU1784994C (en) | Device for first-come-first service systems simulating | |
SU1229769A1 (en) | Device for simulating queueing system | |
SU1223244A1 (en) | Device for simulating queueing systems | |
RU2020577C1 (en) | Device for modelling system of mass service | |
SU1495811A1 (en) | Unit for simulation of requestservicing process | |
SU1730643A1 (en) | Device for simulation of queueing systems | |
SU1683029A1 (en) | Queuing systems simulator | |
RU2024929C1 (en) | Device for simulating mass queueing systems |