SU1661785A1 - Queueing system simulator - Google Patents
Queueing system simulator Download PDFInfo
- Publication number
- SU1661785A1 SU1661785A1 SU894714777A SU4714777A SU1661785A1 SU 1661785 A1 SU1661785 A1 SU 1661785A1 SU 894714777 A SU894714777 A SU 894714777A SU 4714777 A SU4714777 A SU 4714777A SU 1661785 A1 SU1661785 A1 SU 1661785A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- service
- trigger
- pulse generator
- Prior art date
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Изобретение относитс к специализированным средствам вычислительной техники и предназначено дл моделировани процессов обслуживани двух потоков за вок различного приоритета одним обслуживающим прибором. Цель изобретени - расширение функциональных возможностей за счет моделировани задержки на диспетчеризацию при прерывании обслуживани за вки низкого приоритета. Устройство содержит входы за вок высокого и низкого приоритета, п ть элементов И, два триггера, элемент запрета, п ть разделительных диодов, два генератора импульсов со случайным интервалом следовани , счетчик числа повторов обслуживани , элемент задержки. 1 ил.The invention relates to specialized computer facilities and is intended to simulate the processes of servicing two flows of a different priority order with one serving device. The purpose of the invention is to enhance the functionality by simulating a scheduling delay when interrupting service of a low priority application. The device contains high and low priority inputs, five AND elements, two triggers, an inhibit element, five isolation diodes, two pulse generators with a random following interval, a count of service repetitions, a delay element. 1 il.
Description
Изобретение относитс к специализированным средствам вычислительной техники и предназначено дл моделировани процесса обслуживани одним прибором двух потоков за вок с различными приоритетами .The invention relates to specialized computer facilities and is intended to simulate the process of servicing two flows of applications with different priorities by one device.
Цель изобретени - расширение функциональных возможностей за счет моделировани задержки на диспетчеризацию при прерывании обслуживани за вки низкого приоритета.The purpose of the invention is to enhance the functionality by simulating a scheduling delay when interrupting service of a low priority application.
На чертеже приведена схема устройства .The drawing shows a diagram of the device.
Устройство содержит входы за вок высокого 1 и низкого 2 приоритетов, первый 3 и третий 4 элементы И, первый 5 и второй 6 триггеры, элемент 7 запрета, первый разделительный диод 8, второй элемент И 9, первый 10 и второй 11 генераторы импульсов со случайным интервалом следовани , счетчик 12 числа повторов обслуживани , п тый 13, второй 14, четвертый 15 и третий 16 разделительные диоды, четвертый 17 и п тый 18 элементы И, элемент 19 задержки.The device contains inputs for high 1 and low 2 priorities, first 3 and third 4 elements And, first 5 and second 6 triggers, prohibition element 7, first isolation diode 8, second element And 9, first 10 and second 11 pulse generators with random following interval, the counter 12 is the number of repetitions of service, the fifth 13, the second 14, the fourth 15 and the third 16 dividing diodes, the fourth 17 and the fifth 18 And elements, the delay element 19.
Вербальной моделью работы устройства вл етс следующа .The verbal model of the device is the following.
Два случайных потока за вок на обслуживание поступают на один обслуживающий прибор. За вки на обслуживание с меньшим приоритетом принимаютс в случае отсутстви за вок с более высоким приоритетом . За вкам одного и того же приоритета, поступившим в момент зан тости обслуживающего прибора, в обслуживании отказываетс . Если за вка с высоким приоритетом поступила в период обслуживани за вки с меньшим приоритетом, то обслуживание за вки с меньшим приоритетом прекращаетс , а обслуживаетс за вка с более высоким приоритетом. После освобождени обслуживающего прибора обслуживание прин той ранее к обслуживанию за вки с меньшим приоритетом возобновл етс . Однако после установленного числа прерываний низкоприоритетна за вка по (ЛTwo random flows for servicing go to one serving device. Applications for service with a lower priority are accepted if there is no demand with a higher priority. For requests of the same priority, received at the moment when the servicing device is busy, the service is denied. If a high priority application is received during the service period of a lower priority application, then a lower priority application service is terminated, and a higher priority application is served. After the service device is released, the service previously received for service with a lower priority is resumed. However, after a fixed number of interrupts, a low priority application (L
tt
о оoh oh
VJVj
0000
елate
вторно к обслуживанию не принимаетс и тер етс .secondly, service is not accepted and is lost.
Потоки за вок на обслуживание на входах 1 и 2 представл ют случайную импульсную последовательность, интервалы между которыми распределены по определенным (разный или одним и тем же) законам.The service request flows at inputs 1 and 2 represent a random pulse sequence, the intervals between which are distributed according to certain (different or the same) laws.
Моделью обслуживающего прибора вл ютс генераторы 10 и 11. Закон распределени случайных импульсов на выходах генераторов 10 и 11 один и тот же, так как они моделируют один и тот же прибор.The model of the servicing device are the generators 10 and 11. The law of distribution of random pulses at the outputs of the generators 10 and 11 is the same, since they simulate the same device.
Счетчик 12 считает сколько раз было прервано обслуживание низкоприоритетной за вки высокоприоритетными. Как только число повторов достигнет установленного значени , на его выходе по витс импульс.Counter 12 counts the number of times the low priority service has been interrupted by a high priority. As soon as the number of repetitions reaches the set value, a pulse is produced at its output.
Элемент 19 задержки при прерывании обслуживани за вки низкого приоритета за вкой высокого приоритета учитывает врем на диспетчеризацию за вки, заключающеес в следующем: прерывание на прекращение выполнени обслуживани за вки низкого приоритета: запоминание состо ни обслуживани за вки низкого приоритета: предоставление ресурсов на обслуживание за вки высокого приоритета.The delay element 19 in interrupting service of a low priority application of a high priority application takes into account the scheduling time of the application, which is as follows: interruption to terminate the execution of the service of the low priority application: remembering the state of the service of the low priority application: providing resources for servicing the application high priority.
Устройство может работать в трех режимах: обслуживание за вок высокого приоритета, обслуживание за вок низкого приоритета и обслуживание за вок высшего приоритета, поступивших в момент обслуживани за вок низшего приоритета.The device can operate in three modes: servicing a high priority charge, servicing a low priority charge, and servicing a higher priority charge received at the time of servicing a lower priority charge.
Устройство работает следующим образом .The device works as follows.
В исходном состо нии во всех режимах триггеры 5 и 6 устанавливаютс в положение , при котором на выходах, подключаемых к элементам И 3 и 4, имеетс высокий потенциал. При этом на управл ющем входе элемента 7 запрета напр жение отсутствует . Этот элемент открыт.In the initial state, in all modes, the triggers 5 and 6 are set to the position where the outputs connected to the And 3 and 4 elements have a high potential. At the same time, there is no voltage at the control input of prohibition element 7. This item is open.
Обслуживание за вок низкого приоритета . Импульсы с входа 2 через элементы 4 и 7 и диод 8 запускают генератор 11, а триггер 6 переводитс в положение, при котором элементы И 4 и 17 закрыты до момента окончани обслуживани за вки. Элемент И 18 открыт дл приема за вки высокого приоритета. Поступившие в это же врем за вки с входа 2 к обслуживанию не принимаютс и тер ютс . После окончани обслуживани за вки импульс с выхода генератора 11 через диод 16 переводит триггер 6 в положение, при котором открываютс элементы И 4 и 17, а элемент И 18 закрываетс .Service for low priority wok. The pulses from the input 2 through the elements 4 and 7 and the diode 8 start the generator 11, and the trigger 6 is switched to the position in which the elements 4 and 17 are closed until the end of the application service. Element 18 is open to receive a high priority application. Entries received from input 2 at the same time are not accepted for service and are lost. After the end of the service, the impulse from the output of the generator 11 through the diode 16 moves the trigger 6 to the position at which the elements 4 and 17 are opened and the element 18 closes.
Обслуживание за вок высокого приоритета . Импульс с входа 1 через открытые элементы И 3 и 17 запускает генератор 10 и переводит триггер 5 в состо ние, при котором снимаетс высокий потенциал с элемента И 3 и подаетс напр жение наService for high priority wok. The impulse from input 1 through the open elements And 3 and 17 starts the generator 10 and transfers the trigger 5 to a state in which a high potential is removed from the element 3 and the voltage applied to
управл ющий (запрещающий) вход элемента 7 запрета. При этом за вки, поступившие с входа 1, тер ютс , так как элемент И 3 закрыт, а за вки с входа 2, пройд открытый элемент И 4, к обслуживанию не принима0 ютс , так как элемент 7 закрыт. После окончани обслуживани за вки и по влени импульса на выходе генератора 10 схема переводитс в исходное состо ние - открываютс элементы И 3 и запрета 7.control (prohibiting) the input element 7 of the ban. In this case, applications received from input 1 are lost, since AND 3 is closed, and applications from input 2, which passed through AND 4, are not accepted for service, because element 7 is closed. After the termination of the service of the application and the occurrence of a pulse at the output of the generator 10, the scheme is reset to the initial state - the elements of AND 3 and prohibition 7 are opened.
5 Обслуживание за вок высокого приоритета , поступивших в период обслуживани за вок низкого приоритета. За вка низкого приоритета с входа 2 через открытый элемент 7 запускает генератор 11 и опрокиды0 вает триггер 6, при этом закрываютс элементы И 4 и 17, а на второй вход элемента Л 9 с выхода триггера 6 поступает разрешающий потенциал и открываетс элемент И 18.5 Servicing high priority charges received during the servicing period of a low priority tender. For low priority from input 2 through open element 7, the generator 11 starts and tilts trigger 6, and elements 4 and 17 are closed, and a second potential is fed to the second input of element 9 9 from output of trigger 6 and the element 18 opens.
5 За вка высшего приоритета с входа 2 до окончани работы генератора 11 через открытые элементы И 3 и 18 поступает на элемент 19 задержки, учитывающий врем диспетчеризации обслуживающего прибо0 ра, запускает генератор 10, устанавливает генератор 11 в исходное состо ние (чем имитируетс прерывание обслуживани за вки с низким приоритетом)и опрокидывает триггер 5. При этом закрываетс элемент И5 The application of the highest priority from input 2 to the end of generator 11 operation through open elements 3 and 18 enters delay element 19, taking into account the scheduling time of the serving device, starts generator 10, sets generator 11 to its initial state (which simulates a service interruption low priority) and flips trigger 5. This closes the AND element
5 3 и элемент 7 закрыт. В таком состо нии схема удерживаетс до окончани обслуживани за вки с высоким приоритетом. После по влени импульса на выходе генератора 10 опрокидываетс триггер 5,5 3 and item 7 is closed. In such a state, the scheme is held until the end of service of a high priority application. After the appearance of a pulse at the output of the generator 10, trigger 5 is tilted,
0 открыва элементы 3 и 7. Одновременно этот же импульс проходит через элементы И 9 и 18, на вторых входах которых имеетс разрешающий потенциал от триггера б, на запуск генератора 11. Тем самым имитиру5 етс повторное обслуживание за вки с низшим приоритетом. Кроме того, этот же импульс поступает на счетный вход счетчика 12.0 opening elements 3 and 7. At the same time, the same impulse passes through elements 9 and 18, at the second inputs of which there is a resolving potential from trigger b, to start the generator 11. Thus, repeated maintenance of applications with lower priority is simulated. In addition, the same pulse is fed to the counting input of the counter 12.
До окончани обслуживани триггер 6Prior to the end of service trigger 6
0 держит элементы И 4 и 17 в закрытом состо нии, а элементы И 9 и 18 - в открытом. Если низкоприоритетна за вка успевает обслужитьс до по влени высокоприоритетной , то после по влени импульса на вы5 ходе генератора 11 схема возвращаетс в исходное состо ние; импульс с выхода генератора 11 через диод 16 поступает на вход триггера 6 и вход сброса счетчика 12. В результате элементы И 4 и 17 открываютс по второму входу.0 keeps the elements AND 4 and 17 in the closed state, and the elements AND 9 and 18 in the open state. If the low priority application has time to be served before the appearance of the high priority, then after the appearance of a pulse at the top of the generator circuit 11, the circuit returns to its initial state; a pulse from the output of the generator 11 through the diode 16 is fed to the input of the trigger 6 and the reset input of the counter 12. As a result, the elements 4 and 17 open at the second input.
Пусть низкоприоритетна за вка не успевает повторно обслужитьс (ее обслуживание прерветс вновь поступившей на вход 1 высокоприоритетной за вкой). Импульс с входа 1 через открытый элемент И 3 приводит генератор 11 в исходное состо ние . Элемент И 3 закрываетс по второму входу до конца обслуживани высокоприоритетной за вки.Let the low-priority application not have time to be re-served (its service will be interrupted by the newly received input 1 of the high-priority application). The impulse from input 1 through the open element I 3 sets the generator 11 to the initial state. Element 3 is closed at the second entrance until the end of the high priority service.
После окончани обслуживани высокоприоритетной за вки на выходе генератораAfter the end of the service of high priority application at the generator output
10по вл етс импульс (имитирующий окончание обслуживани за вки). Этот импульс поступает на вход триггера 5. В результате элемент И 3 открываетс по второму входу. Одновременно этот же импульс через открытый элемент И 9 поступает на счетный вход счетчика 12. Кроме того, через диод 13 этот импульс поступает на вход генератора10po is a pulse (imitating the end of service applications). This pulse arrives at the input of the trigger 5. As a result, the element And 3 opens at the second input. Simultaneously, the same pulse through the open element And 9 is fed to the counting input of the counter 12. In addition, through the diode 13, this pulse is fed to the input of the generator
11и запускает его (имитируетс очередное повторное обслуживание ранее прерванной низкоприоритетной за вки). Таких повторов может быть К, поэтому К раз необходимо учитывать врем на диспетчеризацию. Как только на счетный вход счетчика 12 поступит очередной импульс, суммарное количество которых достигнет К, на выходе переполнени по витс импульс, который через диод 15 устанавливает генератор 11 в исходное положение, а также устанавливает элементы И 4 и 17, триггер 6, счетчик 12 в исходное состо ние.11 and launches it (simulates the next re-maintenance of previously interrupted low-priority applications). Such repetitions may be K, therefore, K times it is necessary to take into account the time for dispatching. As soon as the next impulse arrives at the counting input of the counter 12, the total number of which reaches K, the output of the overflow results in a pulse, which through the diode 15 sets the generator 11 to its initial position, and also sets the elements 4 and 17, trigger 6, counter 12 initial state.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894714777A SU1661785A1 (en) | 1989-07-04 | 1989-07-04 | Queueing system simulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894714777A SU1661785A1 (en) | 1989-07-04 | 1989-07-04 | Queueing system simulator |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1661785A1 true SU1661785A1 (en) | 1991-07-07 |
Family
ID=21458823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894714777A SU1661785A1 (en) | 1989-07-04 | 1989-07-04 | Queueing system simulator |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1661785A1 (en) |
-
1989
- 1989-07-04 SU SU894714777A patent/SU1661785A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1418734, кл. G 06 F 15/20, 1987. Авторское свидетельство СССР ISfe 1283787, кл. G 06 F 15/20, 1985. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1661785A1 (en) | Queueing system simulator | |
SU1283787A1 (en) | Device for simulating the queueing systems | |
SU1283786A1 (en) | Device for simulating the queueing systems | |
SU1247887A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1683029A1 (en) | Queuing systems simulator | |
RU68728U1 (en) | TELECOMMUNICATION SYSTEM TRAFFIC SERVICE MODEL | |
SU1024929A1 (en) | Device for simulating servicing requests with different priorities | |
RU2018946C1 (en) | Device for modelling process of servicing applications | |
SU962969A1 (en) | Device for simulating servicing process of requests with different priority | |
SU1035611A1 (en) | Device for simulating process of servicing requests having different priorities | |
SU1312594A1 (en) | Device for simulating the queueing systems | |
RU2024055C1 (en) | Device simulating servicing of different-priority requests | |
SU1562927A1 (en) | Device for modeling two-channel queueing system | |
SU1206796A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1164727A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1259282A2 (en) | Device for simulating the servicing process of requests with different priorities | |
SU1383390A1 (en) | Device for simulating process of request service | |
SU1193686A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1056204A1 (en) | Device for simulating process of servicing requests with different priorities | |
RU2024929C1 (en) | Device for simulating mass queueing systems | |
SU1508230A1 (en) | Device for modeling queue systems | |
SU1260971A1 (en) | Device for simulating the queueing systems | |
SU1688256A1 (en) | A queueing system simulator | |
SU1185348A1 (en) | Device for simulating behavior of human operator | |
SU1221660A2 (en) | Device for simulating process for servicing requests with different priorities |