SU1233161A1 - Device for distributing tasks in computer system - Google Patents
Device for distributing tasks in computer system Download PDFInfo
- Publication number
- SU1233161A1 SU1233161A1 SU843803200A SU3803200A SU1233161A1 SU 1233161 A1 SU1233161 A1 SU 1233161A1 SU 843803200 A SU843803200 A SU 843803200A SU 3803200 A SU3803200 A SU 3803200A SU 1233161 A1 SU1233161 A1 SU 1233161A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- group
- inputs
- elements
- input
- outputs
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к области вычислительной техники. Цель изобретени - сокращение среднего времени обслуживани заданий в вычислительной системе. Устройство содержит блок выбора максимального числа, регистры, счетчики, триггеры, дешифраторы, элементы И, элементы ИЛИ, элемент сравнени , элемент задержки,элементИЛИ-НЕ, генератор импульсов. .Новым в устройстве вл етс использование блока выбора максимального числа, триггеров , дешифраторов, элементов ИЛИ, генератора импульсов и элемента ИЛИ-НЕ, позвол юо ее назначать на обслуживание свободными процессорами в первую очередь заданий с максимальной длительностью вьтолнени , обеспечить параллельное планирование заданий и коррекцию информационно-управл ющего графа св зности между задани ми . Устройство вы вл ет независимые по информационно-управл ющим св з м задани , из их числа выбирает задани с максимальной длительностью выполнени и назначает их на свободные процессоры, производит после выполнени заданий процессорами коррек- цию информационно-управл ющего графа св зности между задани ми. 2 ил. с S (Л to со со оThis invention relates to the field of computing. The purpose of the invention is to reduce the average time of service jobs in the computing system. The device contains a block for selecting the maximum number, registers, counters, triggers, decoders, AND elements, OR elements, comparison element, delay element, OR-NOT element, pulse generator. .New in the device is the use of the maximum number selection block, triggers, decoders, OR elements, pulse generator and OR NOT element, allowing it to be assigned to service by free processors in the first place tasks with maximum execution time, to ensure parallel task scheduling and correction information and control graph of connectivity between tasks. The device detects tasks that are independent in information control communications, selects tasks with the maximum execution duration from among them and assigns them to free processors, and after completing tasks in processors by the processors, the information control correlation graph between tasks is corrected. 2 Il. with S (L to with so about
Description
1one
Изобретение относитс к вычислительной технике, в частности к устройствам дл распределени задач в вычислительных системах.The invention relates to computing, in particular, devices for distributing tasks in computing systems.
Цель изобретени - сокращение вре мени обслуживани заданий в вычислительной системе.The purpose of the invention is to reduce the time of service tasks in the computing system.
На фиг. 1 представлена структурна схема устройства; на фиг, 2 - структурна схема блока дл выбора максимального числа.FIG. 1 shows a block diagram of the device; Fig. 2 is a block diagram for selecting the maximum number.
Предлагаемое устройство содержит матрицу 1 (размером N N ) формирователей дуг, первый элемент ШШ 2,, блок 3 выбора максимального числа,, триггеры 4, первую группу элементов ИЛИ 5, первую группу элементов И 6, группу сче.тчиков 7, счетчик 8, группу схем 9 сравнени , первую группу триггеров 10, вторую группу элементов И 11, первую и вторую группы регистров 12 и 13, третью группу элеметов И 14, вторую группу элементов ИЛИ 15, вторую группу триггеров 16, второй элемент ИЛИ 17, элемент И 18, генератор 19 импульсов, третью группу элементов ИЛИ 20, четвертую группу элементов И 21 группу элементов ИЛИ-НЕ 22, группу дешифраторов 23, четвертую группу элементов ИЛИ 24, третий элемент ИЛИ 25, элемент ЙПИ-НЕ 26, первый и второй элементы 27 и 28 задержки, группу блоков поразр дных узлов 29 анализа, третью, четвертую и п тую группы элементов И 30 - 32, п тую и шестую группы элементов ИЛИ 33 и 34, третью группу триггеров 35, группу элементов И-НЕ 3 седьмую группу элементов 1-1ПИ 37,, третью группу регистров 38, третью группу элементов И 39, первую, вторую, третью, четвертую и п тую группы входов 40 - 44, вход 45, выход 46, группу выходов 47 устройства, первую группу входов 48, первый вход 49, вторую группу входов 50, второй вход 51 и группу выходов 52 блока 3 выбора максимального числа.The proposed device contains a matrix 1 (size NN) of arc formers, the first element SH 2, block 3 for selecting the maximum number, triggers 4, the first group of elements OR 5, the first group of elements AND 6, the group of counters 7, counter 8, the group circuits 9 comparison, the first group of triggers 10, the second group of elements And 11, the first and second groups of registers 12 and 13, the third group of elements And 14, the second group of elements OR 15, the second group of triggers 16, the second element OR 17, element And 18, 19 pulse generator, the third group of elements OR 20, the fourth group of elements And 21 group of elements OR-NOT 22, group of decoders 23, fourth group of elements OR 24, third element OR 25, element YPI-NE 26, first and second elements 27 and 28 delays, group of blocks of bitwise analysis nodes 29, third, the fourth and fifth groups of elements And 30 - 32, the fifth and sixth groups of elements OR 33 and 34, the third group of triggers 35, the group of elements AND-NE 3, the seventh group of elements 1-1PI 37, the third group of registers 38, the third group of elements And 39, the first, second, third, fourth, and fifth groups of inputs 40–44, input 45, output 46, output group 47 va, a first group 48 of inputs, the first input 49, a second group of inputs 50, a second input 51 and output 52 group unit 3 selecting the maximum number.
Устройство работает следующим образом .The device works as follows.
В исходном состо нии триггеры 4 и 10, счетчики 7 и 8 обнулены.In the initial state, triggers 4 and 10, counters 7 and 8 are cleared.
Первоначально в триггеры 4 матрицы 1 формирователей дуг по входам 40 заноситс информаци о топологии графа (вершины которого соответствуют задани м, а дуги - информационно-управл ющим св з м между ними). При . этом соответствующие триггеры 4 ус1233161Initially, the triggers 4 of the matrix 1 of the formers of arcs along the inputs 40 enter information about the topology of the graph (the vertices of which correspond to the tasks, and the arcs to the information controlling links between them). At. This corresponding triggers 4 us1233161
SS
00
танавливаютс в единичное состо ние. Номер триггера, установленного в единичное состо ние, определ етс пересечением строки с номером; равным номеру начальной вершины дуги, и столбца с номером, равным номеру ее конечной вершины сtantalized in a single state. The number of a trigger set to one is determined by the intersection of the row number; equal to the number of the initial vertex of the arc, and the column with the number equal to the number of its final vertex with
В соответствующий регистр 13 по входу 42 заноситс , код номера задани и исходные дл его выполнени .В J -и регистр 12 ( j -1,N , где N - количество заданий) по входам 41 заноситс код времени выполнени (длительности ) j -го задани . В общем стгучае коды времен выполнени заданий отличаютс друг от друга.The corresponding register 13 is entered at input 42, the code of the task number and the initial ones for its execution. In J, and register 12 (j -1, N, where N is the number of tasks), at input 41, the time code of the jth ask. In general, task execution time codes differ from each other.
В работе устройства молсно выделить три этапа.In the operation of the device there are three stages.
На. первом этапе производитс определение независимых заданий (пла-. нироЕ;ание обработки заданий) , При этом на выходе элементов ИЛИ 5 в столбцах, соответствующих начальным вершинам информационно-управл ющего 2 графа , по вл ютс низкие потенциалы, так как начальные вершины не содержат вход щих дуг и триггеры 4 в этих столбцах наход тс в нулевом состо нии , импульс запуска по входу 45 че- 0 реэ элемент ИЛИ 2 поступает на вторые БходБ всех элементов И 6 и счетный вход счет-чика 8. Импульс запуска устанавливает в единичное состо ние все триггеры: 10. При этом импульс запуска не проходит через элементы И 6 на счетчики 7 тех столбцов матрицы 1, все триггеры 4 которых наход тс в нулевом состо нии. Кроме того, импульс запуска устанавливает в единичное состо ние все триггеры 10. В динамике функционировани устройства j-и триггер устанавливаетс в нулевое состо ние после назначени j -гоOn. In the first stage, independent tasks are determined (planned; task processing). At the same time, the potentials of the OR 5 elements in the columns corresponding to the initial vertices of the information control 2 graph appear low potentials, since the initial vertices do not contain an input The arcs and triggers 4 in these columns are in the zero state, the start pulse at input 45 through the 0 stree element OR 2 is fed to the second BhodB of all elements 6 and 6 and the counting input of the counter 8. The start pulse sets to one state all triggers: 10. In this case, the start pulse does not pass through the AND 6 elements to the counters 7 of those columns of matrix 1, all the triggers 4 of which are in the zero state. In addition, the trigger pulse sets all the triggers 10 to one state. In the dynamics of the device’s operation, the j-th and the trigger is set to the zero state after assignment of the j -th
задани на процессор.tasks on the processor.
Далее содержимое каждого счетчика 7 поступает на первый вход соответствующего элемента 9 сравнени , а из другой -ВХОД этого элемента - информаци со счетчика 8. Нри несовпадении показаний счетчиков 7 и 8 элемент 9 сравнени , вырабатывает сигнал, который поступает на второй вход соответствующего элемента И 11. На выходе J -го элемента И 11 по вл етс единичный сигнал только в том случае, если J-и триггер 10 находитс в единичном состо нии,, а на выходе j-го элемента 9 сравнени - также единичный сигнал,Next, the contents of each counter 7 are fed to the first input of the corresponding comparison element 9, and from the other, the INPUT of this element is information from the counter 8. If the readings of the counters 7 and 8 do not match, the comparison element 9 generates a signal that goes to the second input of the corresponding element 11 At the output of the J-th element And 11 a single signal appears only if the J-and the trigger 10 is in the single state, and the output of the j-th comparison element 9 is also a single signal,
5five
00
5five
. 31. 31
На втором этапе работы устройства производитс выбор из числа независимых заданий задани с максимальной длительностью выполнени . Производитс это следующим образом. В исходном состо нии в триггеры реги-стров 38 блока 3 выбора максимального числа записаны коды времени вьшолнени заданий (из регистров 12 они поступают по входам 50 блока 3). Совокупность сравниваемых чисел задаетс путем установки в единичное состолние триггеров 36 блока 3 дл выбора максимального числа сигналами с выходов соответствующих элементов И 11 по входам 48 блока 3 выбора максимального числа. Запуск блока 3 выбора максимального числа по входу 51 обеспечиваетс импульсом с генератора 19 импульсов через элемент И 18 при ус- ловии, что хот бы один процессор вычислительной системы свободен (при наличии сигнала на входах 43 устройства , устанавливающего i-и триггер 16 в единичное состо ние, -1 1,и , где h- число процессоров вычислительной системы, в соответствии с чем на выходе элемента ИЛИ 17 находитс единичный сигнал). При этом обеспечиваетс поразр дный анализ сравниваемых чисел следующим образом Если в первом разр де чисел имеетс и О и 1, то через элементы И 30 и 31 узлов 29 анализа на группу элементов ИЛИ 33 и 37 поступают единичные сигналы. На выходе элемента И-НЕ 36 сформируетс нулевой сигнал, который закрываетс элементом И 39, . Через элементы И 32 узлов анализа и элементы ИЛИ 34, относ щихс к тем регистрам, в первом разр де которых записан О, единичный сигнал поступает на входы установки в нулевое состо ние соответствующих триггеров 35. Элементы И 30 и 31 соответствукщих узлов анализа закрываютс , и единичный сигнал находитс только на выходе элемента ИЛИ 37. На выходе элемента И-НЕ формируетс единичный сигнал, по которому открываетс элемент И 39.Далее производитс анализ следующего разр да оставшихс сравниваемых чисел .At the second stage of the device operation, a selection is made from among the independent tasks of the task with the maximum duration of execution. This is done as follows. In the initial state, the tasks execution time codes are recorded in the triggers of the registers 38 of the block 3 for selecting the maximum number (from the registers 12 they are fed to the inputs 50 of the block 3). The set of compared numbers is set by setting the unit 3 of triggers 36 of unit 3 to select the maximum number of signals from the outputs of the corresponding And 11 elements on the inputs 48 of the maximum number selector 3. The launch of block 3 for selecting the maximum number at input 51 is provided by a pulse from the generator of 19 pulses through an element AND 18, provided that at least one processor of the computing system is free (if there is a signal at the inputs 43 of the device that sets the i- and flip-flop 16 to one , -1 1, and, where h is the number of processors of the computing system, according to which the output signal of the element OR 17 is a single signal). In this case, a one-by-one analysis of the compared numbers is provided as follows. If in the first digit of numbers there are both O and 1, then through the elements AND 30 and 31 of the analysis nodes 29 there are single signals for the group of elements OR 33 and 37. At the output of the NAND 36 element, a zero signal is generated, which is closed by the element AND 39,. Through the elements AND 32 analysis nodes and OR elements 34, belonging to those registers, in the first discharge of which O is recorded, a single signal is fed to the inputs of setting the corresponding triggers 35 to the zero state. And elements 30 and 31 of the corresponding analysis nodes are closed, and a single signal is only at the output of the OR element 37. At the output of the AND-NO element, a single signal is generated, according to which AND 39 is opened. Next, the analysis of the next bit of the remaining compared numbers is performed.
Если же в первом разр де сравниваемых чисел только нулевые коды илиIf in the first digit of the compared numbers only zero codes or
только единичные, то на выходе эле мента И-НЕ 36 находитс единичньш сигнал, который открывает элемент И 39. Следовательно, в этом случаеonly single ones, then at the output of the AND-NO 36 element there is a single signal that opens the element AND 39. Therefore, in this case
233233
5 ю 15 20 25 зо . 355 y 15 20 25 h. 35
4040
4545
5555
16141614
сразу производитс анализ второго или последующих разр дов. После того, как все разр ды сравниваемых чисел проанализированы , на выходе элемента И 39 формируетс единичный уровень. При этом на выходах 32 блока 3 выбора максимального числа содержитс унитарный код j номера задани с максимальной длительностью выполнени из числа заданных (унитарный код 00100 указывает, что выбран третий номер задани ).An analysis of the second or subsequent bits is performed immediately. After all bits of the compared numbers are analyzed, a single level is formed at the output of the AND 39 element. At the same time, the outputs 32 of the maximum number selection block 3 contain the unitary code j of the task number with the maximum execution time from the number specified (unitary code 00100 indicates that the third task number is selected).
Единичный сигнал на К-м выбранном выходе 52 блока 3 выбора максимального числа разрещает прохождение кода номера К-го задани и его исходных данных из К-го регистра 13 через К-й блок элементов И 14, блок элементов ИЛИ 15 на первые входы блоков элементов И 21. Кроме того, сигнал с К-го выхода 52 блока 3 выбора максимального числа устанавливает в нулевое состо ние К-й триггер 10, чем исключаетс из дальнейшего анализа К-е задание .A single signal on the K-th selected output 52 of the block 3 for selecting the maximum number allows the passage of the K-th task number code and its source data from the K-th register 13 through the K-th block of elements AND 14, the block of elements OR 15 to the first inputs of the blocks of elements And 21. In addition, the signal from the K-th output 52 of the block 3 for selecting the maximum number sets the K-th trigger 10 to the zero state, which is excluded from further analysis of the K-th task.
На третьем этапе работь устройства обеспечиваетс назначение выбранного задани на свободный процессор вычислительной системы и коррекци матрицы информационно управл ющего графа, т.е. установка в нулевое состо ние триггеров 4 матрицы 1 тех строк, номера которых соответствуют кодам номеров задани , обслуженных процессорами. Сигналы готовности процессоров по входам 43 устройства устанавливают в единичное состо ние соответствующие триггеры 16 и разрешают прохождение кода номера К выбранного задани с максимальной длительностью через блок элементов И 21, соответствующий свободному процессору с минимальным номером. Это обеспечиваетс блоком элементов ИЛИ-НЕ 22, в котором 5 -и вход 43 устройства соединен с входами ( i + 1,h )-ых элементов ИПИ-НЕ. Таким образом, сигнал на 1-м младшем входе 43 устройства запрещает прохождение информации через блоки элементов И 21 с большими номерами . Код номера К задани и исходные данные дл его выполнени поступают на группу выходов 47 устройства. Кроме того, на выходе i -го элемента ИЛИ 20 по вл етс единичньш сигнал, которьй устанавливает в нулевое состо ние 1-й триггер 16, чем показывает зан тость 1 -го процессора вычислительной системы.At the third stage, the operation of the device ensures assignment of the selected task to a free processor of the computing system and correction of the matrix of the information control graph, i.e. setting the triggers to the zero state 4 matrices of 1 of those rows, the numbers of which correspond to the codes of the task numbers served by the processors. The processor readiness signals at the device inputs 43 set the corresponding triggers 16 to one state and allow the K code of the selected task with the maximum duration to pass through the block of elements And 21 corresponding to the free processor with the minimum number. This is provided by the block of elements OR-NOT 22, in which the 5th input 43 of the device is connected to the inputs (i + 1, h) of the IPI-NE elements. Thus, the signal at the 1st lower input 43 of the device prohibits the passage of information through blocks of elements And 21 with large numbers. The code of the K number of the task and the source data for its execution are fed to a group of outputs 47 of the device. In addition, at the output of the i-th element OR 20, a single signal appears, which sets the first trigger 16 to the zero state, which indicates the occupation of the 1st processor of the computing system.
По окончании обслуживани К-го задани (-м процессором на i-м входе готовности 43 устройства по вл етс единичный сигнал, на группе входов А4 - код номера К обслуженного задани . Код К дешифруетс дешифратором 23, через К-й элемент ИЛИ 24 обнул ет триггеры 4 К-й строки матрицы 1 и через элемент ИЛИ 25 поступает на вход элемента ИЛИ 2, выполн затем функции импульса запуска, и начинаетс повторное выполнение первого этапа работы устройства.Upon completion of the K-th task service (the -th processor appears at the i-th readiness input 43 of the device, a single signal appears, at the input group A4 - the K-number of the served task. The K-code is decoded by the decoder 23, through the K-th element OR 24 The triggers 4 of the Kth row of the matrix 1 and through the OR 25 element are fed to the input of the OR 2 element, then perform the function of a trigger pulse, and the first stage of the device operation is repeated.
При обнулении всех триггеров 4 матрицы 1 на выходах всех элементов ИЛИ 5 наход тс нулевые сигналы, а на выходе элемента ИЛИ-НЕ 26 - единичный сигнал. Этот сигнал через элемент 27 задержки обнул ет счетчики 7 и 8 и поступает на выход 46 устройства . На этом работа устройства заканчиваетс .When all the triggers 4 of the matrix 1 are zeroed, the outputs of all the elements of OR 5 are zero signals, and the output of the element OR NOT 26 is a single signal. This signal, through delay element 27, zeroes counters 7 and 8 and enters output 46 of the device. The operation of the device ends there.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843803200A SU1233161A1 (en) | 1984-10-16 | 1984-10-16 | Device for distributing tasks in computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843803200A SU1233161A1 (en) | 1984-10-16 | 1984-10-16 | Device for distributing tasks in computer system |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1233161A1 true SU1233161A1 (en) | 1986-05-23 |
Family
ID=21143269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843803200A SU1233161A1 (en) | 1984-10-16 | 1984-10-16 | Device for distributing tasks in computer system |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1233161A1 (en) |
-
1984
- 1984-10-16 SU SU843803200A patent/SU1233161A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 716043, кл. G 06 F 15/20, 1980. Авторское свидетельство СССР № 1037267, кл. G 06 F 15/20, 1983. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1233161A1 (en) | Device for distributing tasks in computer system | |
EP0806007B1 (en) | A parametrizable control module comprising first and second loadables counters, an electronic circuit comprising a plurality of such parametrized control modules, and a method for synthesizing such circuit | |
US5404540A (en) | Arbiter with a uniformly partitioned architecture | |
SU1309036A1 (en) | Device for generating control pulses for corpuscle beam | |
RU2152072C1 (en) | Dynamic priority device | |
SU1037267A1 (en) | Computer system control device | |
SU1242982A1 (en) | Device for determining minimum paths in graphs | |
RU2285289C2 (en) | Device for planning positioning of problems in systems with circular organization during directional information transfer | |
RU2232412C1 (en) | Apparatus for constructing programmable digital microprocessor systems | |
SU1298763A1 (en) | Device for optimizing resource allocation with saturated demands | |
SU1363184A1 (en) | Number grading device | |
SU1173407A1 (en) | Device for selection of extreme number | |
RU1835529C (en) | Appliance for information collecting and coding from hodoscope detectors and multi-wired proportional cameras | |
RU2273042C2 (en) | Device for building programmable digital microprocessor systems | |
RU2222822C2 (en) | Device for programmed control over electric motor drives, electron keys and signaling | |
SU1100623A1 (en) | Device for distributing jobs in computer system | |
SU1179316A1 (en) | Device for selecting extreme number from n m-bit binary numbers | |
SU1444769A1 (en) | Multichannel arrangement for distributing tasks among processors | |
SU1059565A1 (en) | Device for sampling ordered data sequence | |
SU1275464A1 (en) | Device for distributing jobs | |
SU1024902A1 (en) | Device for determination maximal number | |
SU1683004A1 (en) | Device to analyze fuzzy data | |
SU1128249A2 (en) | Device for selecting extremum number | |
SU641443A1 (en) | Mn-digit number comparator | |
SU1254485A1 (en) | Device for distributing group requests among processors |