SU1341650A1 - Device for simulating request service process - Google Patents
Device for simulating request service process Download PDFInfo
- Publication number
- SU1341650A1 SU1341650A1 SU864066978A SU4066978A SU1341650A1 SU 1341650 A1 SU1341650 A1 SU 1341650A1 SU 864066978 A SU864066978 A SU 864066978A SU 4066978 A SU4066978 A SU 4066978A SU 1341650 A1 SU1341650 A1 SU 1341650A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- trigger
- inputs
- elements
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 12
- 230000003044 adaptive effect Effects 0.000 abstract description 2
- 230000001934 delay Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Изобретение относитс к вычислительной технике и предназначено дл моделировани процесса обслуживани за вок в системах массового обслуживани . Цель изобретени - расширение функциональных возможностей устройства за счет имитации процессов организации очереди за вок и одновременного обслуживани различных за вок с двум разными скорост ми в зависимости от длины очереди за вок. Устройство содержит счетчик импульсов, дешифратор, триггер , элементы И, элементы задержки, элементы ИЛИ, блок счетчиков импульсов , вход за вок устройства, первую и вторую модели обслуживающего прибора , кажда из которых включает элемент И, триггер и генератор импульсов со случайным интервалом следовани . Устройство позвол ет моделировать процесс обслуживани за вок с учетом адаптивных свойств обслуживающего прибора по скорости обслуживани за вок в зависимости от длины очереди за вок и оценивать веро тностные показатели процесса функционировани обслуживающего прибора. 1 ил. (Л со 4: О5 СПThe invention relates to computing and is intended to simulate the process of servicing applications in queuing systems. The purpose of the invention is to expand the functionality of the device by imitating the processes of queuing a quotation and simultaneously servicing different quotes at two different rates depending on the length of the queuing queue. The device contains a pulse counter, a decoder, a trigger, AND elements, delay elements, OR elements, a pulse counter block, an input for the device, first and second models of the serving device, each of which includes an AND element, a trigger and a pulse generator with a random following interval. The device allows you to simulate the process of servicing the application with regard to the adaptive properties of the servicing device according to the servicing speed of the application depending on the queue length of the application and to evaluate the probability indicators of the process of operation of the servicing device. 1 il. (L co 4: O5 SP
Description
НзоОретение относитс к вычислительной технике и может быть использовано в устройствах, моделирующих работу систем массового обслуживани The invention relates to computing and can be used in devices that simulate the operation of queuing systems.
Цель изобретени - расширение функциональных возможностей устройства за счет имитации процессов организации очереди за вок и одновременного обслуживани различных за вок с двум разными скорост ми в зависимости от длины очереди за вок.The purpose of the invention is to expand the functionality of the device by imitating the processes of queuing a quotation and simultaneously servicing different quotes at two different rates depending on the length of the queuing queue.
На чертеже приведена структурна схема устройства дл моделировани процесса обслуживани за вок.The drawing shows a block diagram of a device for simulating a process for servicing a demand.
Устройство содержит счетчик 1 импульсов, дешифратор 2, первый триггер 3, первый, второй, третий элементы И 4-6 соответственно, первый элемент 7 задержки, первый, второй, третий, четвертый элементы ИЛИ 8-11, счетчиков импульсов, чет- i, шестой, седьмой элементы И 13-16, третий 17, второй 18 и четвертый 19 элементы задержки, второй 20 триггер, вход 21 за вок устройства, перва 22, втора 23 модели обслуживающего прибора, кажда из которых включает элемент И 24, триггер 25 и генератор 26 импульсов со случайным интервалом следовани , п тый элемент 27 задержки.The device contains a pulse counter 1, a decoder 2, the first trigger 3, the first, second, third elements AND 4-6, respectively, the first delay element 7, the first, second, third, fourth elements OR 8-11, pulse counters, even the sixth, seventh elements And 13-16, the third 17, the second 18 and the fourth 19 delay elements, the second 20 trigger, the input 21 of the device, the first 22, the second 23 models of the serving device, each of which includes the element And 24, the trigger 25 and a pulse generator 26 with a random following interval, a fifth delay element 27.
Поток за вок на обслуживание, поступающих на вход 21, представл ет случайную импульсную последовательность коротких импульсов. Модели 22 и 23 имитируют один обслуживающий прибор, закон распределени случайных импульсов на выходе генераторов один и тот же, но с разными параметрами . Временный интервал от момента запуска моделей до по влени импульсов на их выходе случаен и распределен по прин тому закону обслуживани The service flow arriving at input 21 is a random pulse train of short pulses. Models 22 and 23 imitate one serving device, the distribution of random pulses at the output of the generators is the same, but with different parameters. The time interval from the moment of launch of models to the appearance of impulses at their output is random and is distributed according to the adopted service law.
блок 12 вертый, п тый.unit 12 is the last, fifth.
за вок, но с разными параметрами.Блок 45 вует, т.е. элемент И 4 открыт, а эле12 счетчиков предназначен дл подсчета импульсов, имитирующих обслуживание за вки с разными скорост ми обслуживани модел ми обслуживающего прибора.block, but with different parameters. Block 45 Element 4 is open, and the eletr of counters is intended for counting pulses simulating the servicing of applications with different service rates by models of the servicing device.
Вербальна модель работы устройства сводитс к следующему.The verbal model of the device is as follows.
При поступлении за вки на обслуживающий прибор производитс ее обслуживание в первой модели обслуживающего прибора со средним временем обслуживани Т (т.е. скоростью V). При поступлении очередной за вки в момент нахождени предыдущей на об50Upon receipt of a request for a service device, it is serviced in the first model of a service device with an average service time T (i.e., speed V). Upon receipt of the next application at the time of finding the previous one at about 50
5555
мент И 6 закрыт. С выхода элемента И 4 импульс поступает на второй вход элемента ИЛИ 10 и далее на второй вход элемента И 24 модели 22, а с его выхода - на нулевой вход триггера 25, перевод его в нулевое состо- нце, закрыва тем самым вход элемента И 24, а также поступает на вход запуска генератора 26 модели 2,2,имитиру начало обслуживани за вки со скоростью V . Через случайный интервал времени, соответствующий продолжительности за вкир вырабатываетс импульс, который поступает на единичcop And 6 is closed. From the output of the AND 4 element, a pulse arrives at the second input of the OR element 10 and further to the second input of the AND 24 element of the Model 22, and from its output - to the zero input of the trigger 25, converting it to the zero state, thereby closing the input of the AND 24 element and also enters the start-up input of the generator 2.2 of the model 2.2, simulating the start of service of the application with the speed V. After a random time interval corresponding to the duration of the spin, an impulse is produced, which is supplied by one
5five
служивании она становитс в очередь и так далее. При достижении в очереди за вки N и последующем их поступлении производитс переключение на вторую модель обслуживающего прибора со средним временем обслуживани Tj (т.е. скоростью V), а перва модель за вки на обслуживание не принимает . При этом соблюдаетс условие Т Т 2 (V Vj). При уменьшении оче- .реди за вок до N,-1 происходит обратное переключение моделей. При достижении заданной длины очереди за вки NJ вновь поступающие за вки тер 0in service, she queued and so on. Upon reaching the queue for requests N and their subsequent receipt, they switch to the second model of the service device with the average service time Tj (i.e., speed V), and the first model does not accept the application for service. Here, the condition T T 2 (V Vj) is met. Decreasing the turnaround rate to N, -1 results in the reverse switching of models. When the specified queue length is reached, the NJ applications for the newly submitted requests are termed 0
5five
00
00
ютс . Обслуживание за вок происходит со скоростью V при наличии за вок в очереди больше N,are. Servicing for a wok occurs at a speed of V if there is a surcharge in a queue with more N,
Устройство работает следующим образом .The device works as follows.
За вки поступают на суммирующий вход счетчика 1, разр дные выходы которого соединены с соответственными входами дешифратора 2, число которых п, а число N 2, которые подключены к соответствующим входам элемента ИЛИ 8. С помощью совокупности элементов: счетчика 1, дешифр атора 2 и элемента ИЛИ 8, имитируетс процесс организации очереди за вок длиной N,j.Quotes are received at the summing input of counter 1, the bit outputs of which are connected to the corresponding inputs of the decoder 2, the number of which is n, and the number N 2 that are connected to the corresponding inputs of the element OR 8. Using a set of elements: counter 1, decipher AT 2 and element OR 8, imitates the process of queuing a wok with a length of N, j.
Таким образом, при поступлении импульса на суммирующий вход счетчика 1, имитирующего поступление за вки с на обслуживание, на первом выходе счетчика 1 по вл етс потенциал, который через первый вход - первый выход дещифратора 2, поступает на второй вход элемента ИЛИ 9, а с его выхода через элемент 7 задержки - на пр мой вход элемента И 4, инверсный вход которого соединен с единичным выходом триггера 3, на котором в исходном состо нии напр жение отсутствует , т.е. элемент И 4 открыт, а элеThus, when a pulse arrives at the summing input of counter 1, imitating the receipt of a service request, the potential of the first output of counter 1 appears, which through the first input — the first output of the decryptor 2 — enters the second input of the element OR 9, and its output through the delay element 7 is to the direct input of the element 4, the inverse input of which is connected to the single output of the trigger 3, on which there is no voltage in the initial state, i.e. element 4 is open and ele
мент И 6 закрыт. С выхода элемента И 4 импульс поступает на второй вход элемента ИЛИ 10 и далее на второй вход элемента И 24 модели 22, а с его выхода - на нулевой вход триггера 25, перевод его в нулевое состо- нце, закрыва тем самым вход элемента И 24, а также поступает на вход запуска генератора 26 модели 2,2,имитиру начало обслуживани за вки со скоростью V . Через случайный интервал времени, соответствующий продолжительности за вкир вырабатываетс импульс, который поступает на единичный вход триггера 25, перевод его в исходное состо ние, открыва тем самым элемент И 24.cop And 6 is closed. From the output of the AND 4 element, a pulse arrives at the second input of the OR element 10 and further to the second input of the AND 24 element of the Model 22, and from its output - to the zero input of the trigger 25, converting it to the zero state, thereby closing the input of the AND 24 element and also enters the start-up input of the generator 2.2 of the model 2.2, simulating the start of service of the application with the speed V. At a random time interval corresponding to the duration of the spin, a pulse is generated, which is fed to the single input of the trigger 25, transferring it to its original state, thus opening the AND 24 element.
С выхода генератора 26 модели 22 импульс имитирует обслуженную за вку и поступает через элемент 17 задержки на первый вход элемента И 15, проход его, поступает на соответствующий вход элемента ИЖ 11 и блока 12 счетчиков. Импульс с выхода элемента ИЛИ 11 поступает на второй вход элемента И 5, обеспечива этим прохождение следующей за вки на обслуживание через первый вход элемента И 5, 15 открыва тем самым элемент И 24. ВFrom the output of the generator 26 of the model 22, the pulse imitates the served charge and enters through the delay element 17 to the first input of the element 15, its passage enters the corresponding input of the element IL 11 and the block 12 of counters. The impulse from the output of the element OR 11 enters the second input of the element AND 5, thereby ensuring the passage of the next AND after service to the service through the first input of the element And 5, 15, thus opening the element And 24. In
подключенного к выходу элемента ИЛИ 8, импульс с выхода элемента ИЛИ 11 также поступает на вычитающий вход счетчика 1, в котором записанное ранее число уменьшаетс на единицу. С выхода элемента И 5 в случае, если в счетчике 1 еще имеетс хот бы один заполненный разр д, импульс через первый вход - выход элемента ИЛИ 9 поступает через элемент 7 задержки на пр мой вход элемента И 4, далее устройство работает по указанной выш схеме. Аналогично устройство работае при поступлении за вок и их наличии в очереди до включительно. При достижении в очереди за вок N на обслуживание импульс с N, выхода первой группы дешифратора 2 поступает на единичный вход триггера 3, перевод его в состо ние 1, при котором элемент И 4 закрываетс , а элемент И 6 открываетс по второму входу , а на первый вход элемента И 6 поступает импульс с выхода генератора 26 модели 22 че рез элементы задержки 17, И 15, ИЛИ 11 на второй вход элемента И 5 и далее с выхода элемента И 5 через элемент 18 задержки , имитирующий окончание обслуживани предыдущей за вки в модели 22 и поступление из очереди следующей за вки на обслуживание. Этот импульс с выхода .элемента И 6 проходит элемент И 24 модели 23 и переводит триггер 25 в нулевое состо ние , закрыва элемент И 24, запускает генератор 26 модели 23, имитиру начало обслуживани за вки-со скоростью Vj (средним временем обслуживани Т) ,connected to the output of the element OR 8, the pulse from the output of the element OR 11 is also fed to the subtractive input of counter 1, in which the previously recorded number is reduced by one. From the output of the element AND 5, if there is still at least one filled bit in the counter 1, the pulse through the first input - the output of the element OR 9 goes through the delay element 7 to the direct input of the element AND 4, then the device operates according to the above scheme . Similarly, the device operates upon receipt of the quotation and their presence in the queue up to and including. Upon reaching the queue N for servicing a pulse with N, the output of the first group of the decoder 2 enters the single input of trigger 3, transferring it to state 1, in which element 4 is closed, and element 6 opens at the second input, and the first input of the element AND 6 receives a pulse from the output of the generator 26 of the model 22 through delay elements 17, AND 15, OR 11 to the second input of the element 5 and further from the output of the element 5 through the delay element 18, imitating the end of service of the previous application in the model 22 and arriving from next in line ki for service. This impulse from the output of element 6 passes element 24 of model 23 and triggers trigger 25 to the zero state, closing element 24, starts generator 26 of model 23, imitating the start of service of the application — with speed Vj (average service time T)
Одновременно импульс с выхода элемента И 5 переходит ч;ерез элементы ИЛИ 9, задержки 7, И 13, ИЛИ 10, И, 24 модели 22 на вход запуска генераAt the same time, the pulse from the output of the element AND 5 passes through h; through the elements OR 9, delays 7, AND 13, OR 10, AND, 24 of model 22 to the input of the start generation
тора 26 модели 22 и переводит триггер 25 в нулевое состо ние, закрыва вход модели 22. Запуск генератора 26 модели 22 имитирует начало обслуживани со скоростью V, последующей за вки из очереди.torus 26 of model 22 and sets trigger 25 to the zero state, closing the input of model 22. Starting generator 22 of model 22 simulates the start of service at a speed V, followed by queuing.
Через случайный интервал времени, соответствующий продолжительности обслуживани за вки в каждой модели 22, 23 вырабатываетс импульс на входе генератора 26, который поступает на единичный вход триггера 25, перевод его в исходное состо ние.At a random time interval corresponding to the duration of the service in each model 22, 23, a pulse is generated at the input of the generator 26, which is fed to the single input of the trigger 25, converting it to the initial state.
00
5five
00
5five
зависимости от состо ни случайного времени обслуживани в модел х 22 и 23 в каждый момент возможны три ситуации .Depending on the state of random service time in models 22 and 23, three situations are possible at any time.
Врем обсл ткивани за вки в модели 22 больше, чем в модели 23 (т21 Т.), тогда импульс на выходе генератора 26 модели 23 по вл етс раньше, чем на выходе модели 22. Этот импульс проходит элементы задержки 19, И 16, ИЛИ 11 и поступает на вычитающий вход счетчика 1, а также проходит элементы И 5, задержки 18, И 6 (если в очереди находитс за вок больше или равно N,), И 24 модели 23, запуска генератор 26, далее аналогично описанному.The servicing time in model 22 is longer than in model 23 (m21 T.), then the pulse at the output of generator 26 of model 23 appears earlier than at the output of model 22. This pulse passes delay elements 19, AND 16, OR 11 and enters the subtracting input of counter 1, and also passes elements 5, delays 18, 6, (if the queue is a quotation greater than or equal to N,), and 24 of model 23, start generator 26, further similarly to that described.
Врем обслуживани в модели 23 больше, чем в модели 22 (Т Т), тогда импульс на выходе генератора 26 модели 22 по вл етс раньше, чем на выходе модели 23, Этот импульс проходит элементы задержки 17, И 15, ИЛИ 11 и поступает на вычитающий вход счетчика 1, а также проходит элементы И 5, ИЛИ 9, задержки 7, И 13 (если в очереди за вок не меньше N), ИЛИ 10 И 24 модели 22, запуска генератор 26, далее аналогично описанному.The service time in model 23 is longer than in model 22 (T T), then the pulse at the output of generator 26 of model 22 appears earlier than at the output of model 23, This pulse passes delay elements 17, AND 15, OR 11 and arrives at subtracting the input of counter 1, and also passes the elements AND 5, OR 9, delay 7, AND 13 (if the queue is at least N), OR 10 AND 24 model 22, start generator 26, further similarly to that described.
Если моменты окончани обслуживани за вок в модел х 22 и 23 совпадают , т.е. тогда на входах элемента И 14 по вл ютс сигналы и на его выходе импульс, который переводит триггер 20 в нулевое состо ние, закрыва тем самым элементы И 15 и 16 и запреща проход импульсов, имитирующих обслуживание за вки, через элементы И 15 и 16. Одновременно им- 5 пульс с выхода элемента И 14 поступает на соответствующий вход элемента ИЛИ 11 и блока 12 счетчиков. С выхода элемента ИЛИ 11 этот импульс поступает на вычитающий вход счетчи0If the moments of the end of the service quotation in models 22 and 23 are the same, i.e. then, at the inputs of element And 14, signals appear and at its output a pulse, which triggers the trigger 20 to the zero state, thereby closing the elements 15 and 16 and prohibiting the passage of pulses imitating the service of the application through elements 15 and 16. At the same time, the pulse from the output of the element AND 14 is fed to the corresponding input of the element OR 11 and the block 12 of the counters. From the output of the element OR 11, this pulse arrives at the subtracting input of the counter 0
5five
00
ка 1 и второй вход элемента И 5, запуска соответственно или модель 22 (если число за вок в очереди меньше N), или модели 22, 23 (если число за вок в очереди /N). Импульс с выхода элемента И 14 также поступает через элемент 27 задержки на единичный вход триггера 20, перевод его в исходное состо ние, а также на соответствующий вход блока 12 счетчиков и элемента ИЛИ 11, с выхода которого импульс поступает на вычитающий вхо счетчика 1 и на второй вход элемента И 5 и в зависимости от числа за вок в очереди и состо ни моделей 22, 23 либо запускает их, либо тер етс .Qa 1 and the second input of the AND 5 element, respectively, of the launch, or model 22 (if the number of queued queuing is less than N), or model 22, 23 (if the number of queuing queuing is / N). The pulse from the output of the element And 14 also enters through the element 27 of the delay to the single input of the trigger 20, its transfer to the initial state, as well as to the corresponding input of the block 12 of the counters and the element OR 11, from the output of which the pulse goes to the subtracting input of the counter 1 and the second input of the And 5 element, and depending on the number of applications in the queue and the state of the models 22, 23, either starts them or is lost.
По мере обслуживани за вок при .достижении (уменьшении) длины очереди величины N,-1 за вок происходит обратное переключение моделей, т.е. импульс с выхода первой группы дешифратора 2 переводит триггер 3 в нулевое состо ние, открыва тем самым элемент И 4 и закрыва элемент И 6. Если в момент переключени с модели 23 на модель 22 заканчиваетс обслуживание за вки в модели 23, то, чтобы не было размножени за вки на две, используютс элементы 7 и 18 задержки, при этом врем задержки элемента 7 больше времени задержки элемента 18, которое в свое врем больше времени срабатывани триггеров 3 и 25, тогда очередна за вка обслуживаетс только в модели 22,As the queuing service is serviced, when the queuing length of the value of N, -1 is reached (shortened), the reverse switching of models occurs, i.e. the impulse from the output of the first group of the decoder 2 sets the trigger 3 to the zero state, thereby opening the element 4 and closing the element 6. If at the time of switching from the model 23 to the model 22 the service for the model 23 ends, then to avoid multiplying the application by two, delay elements 7 and 18 are used, and the delay time of element 7 is longer than the delay time of element 18, which at one time is longer than the response time of trigger 3 and 25, then the next application is served only in model 22,
Таким образом, при наличии в очереди за вок их обслуживание проводитс в модели 22 случайное врем , среднее значение которого , составл ет Т, , при наличии в очереди N и более за вок их обслуживание проводитс в модели 23 случайное врем , среднее значение которого составл ет Т (причем Т Т,) и в модели 22, а при достижении в последующем в очереди N,-1 за вок их обслуживание осуществл етс только в модели 22Thus, if there are queues in the queue, their service is conducted in model 22, a random time, the average value of which is T, and if there are N or more queues in the queue, their service is conducted in model 23, a random time, the average value is T (and T T,) in model 22, and when they subsequently reach the N, –1 queue, they are serviced only in model 22
Таким образом, предлагаемое устройство позвол ет моделировать процесс обслуживани за вок с учетом адаптивных свойств обслуживающего прибора по скорости обслуживани за вок в зависимости от длины очереди за вок и оценивать веро тностные показатели процесса функционировани обслуживающего прибора.Thus, the proposed device makes it possible to simulate the process of servicing a quota taking into account the adaptive properties of the servicing device according to the servicing speed of the quota, depending on the length of the queuing quota, and to evaluate the probability indicators of the servicing process of the servicing instrument.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864066978A SU1341650A1 (en) | 1986-05-13 | 1986-05-13 | Device for simulating request service process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864066978A SU1341650A1 (en) | 1986-05-13 | 1986-05-13 | Device for simulating request service process |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1341650A1 true SU1341650A1 (en) | 1987-09-30 |
Family
ID=21237517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864066978A SU1341650A1 (en) | 1986-05-13 | 1986-05-13 | Device for simulating request service process |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1341650A1 (en) |
-
1986
- 1986-05-13 SU SU864066978A patent/SU1341650A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1037265, кл. G 06 F 15/20, 1981. Авторское свидетельство СССР № 1091170, кл. G 06 F 15/20, 1583. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1341650A1 (en) | Device for simulating request service process | |
SU1309035A1 (en) | Device for simulating process for servicing requests | |
SU1247887A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1418738A1 (en) | Device for simulating mass service systems | |
SU1709338A1 (en) | Queuing system simulator | |
RU2024929C1 (en) | Device for simulating mass queueing systems | |
SU1257659A1 (en) | Device for simulating the queueing systems | |
SU1633420A1 (en) | Query servicing simulator | |
SU1259282A2 (en) | Device for simulating the servicing process of requests with different priorities | |
SU1605252A1 (en) | Device for modeling queuing system | |
SU1035611A1 (en) | Device for simulating process of servicing requests having different priorities | |
SU1642475A2 (en) | Device for simulating servicing of queries with different priorities | |
SU1037265A1 (en) | Device for simulating request servicing | |
SU1115057A1 (en) | Device for simulating process for servicing requests with different priorities | |
SU1325501A1 (en) | Device for modelling waiting systems | |
RU1784994C (en) | Device for first-come-first service systems simulating | |
RU2024055C1 (en) | Device simulating servicing of different-priority requests | |
SU962969A1 (en) | Device for simulating servicing process of requests with different priority | |
RU2041492C1 (en) | Device for solving task of analysis of operations in queuing systems | |
SU1688254A1 (en) | 2-channel queuing system simulator | |
SU1206794A1 (en) | Device for simulating process for servicing requests | |
SU1727128A1 (en) | Device for simulating process of servicing calls with different priorities | |
RU1784995C (en) | Device for request traffic simulating | |
SU1418730A1 (en) | Device for simulating mass service systems | |
SU404092A1 (en) | STOCHASTIC MODEL |