gb-java-devel/pics/jd-04-04-threading.svg

509 lines
20 KiB
XML
Raw Permalink Normal View History

2024-05-12 20:23:51 +03:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg5"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
sodipodi:docname="09-04-threading.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="true"
inkscape:zoom="1.2445079"
inkscape:cx="412.61288"
inkscape:cy="169.54492"
inkscape:window-width="1600"
inkscape:window-height="837"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1">
<inkscape:grid
type="xygrid"
id="grid9" />
</sodipodi:namedview>
<defs
id="defs2">
<marker
style="overflow:visible"
id="Arrow2"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Arrow2"
markerWidth="7.6999998"
markerHeight="5.5999999"
viewBox="0 0 7.7 5.6"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.7)"
d="M -2,-4 9,0 -2,4 c 2,-2.33 2,-5.66 0,-8 z"
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
id="arrow2L" />
</marker>
<rect
x="185"
y="325"
width="365"
height="205"
id="rect4879" />
<rect
x="160"
y="80"
width="410"
height="175"
id="rect4871" />
<linearGradient
inkscape:collect="always"
id="linearGradient3696">
<stop
style="stop-color:#ff0000;stop-opacity:1;"
offset="0"
id="stop3692" />
<stop
style="stop-color:#ff0000;stop-opacity:0;"
offset="1"
id="stop3694" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3696"
id="linearGradient3698"
x1="50.052887"
y1="41.652685"
x2="125.65105"
y2="41.652685"
gradientUnits="userSpaceOnUse" />
<rect
x="185"
y="325"
width="365"
height="205"
id="rect4879-8" />
<rect
x="160"
y="80"
width="410"
height="175"
id="rect4871-9" />
<rect
x="160"
y="80"
width="410"
height="175"
id="rect5126" />
<rect
x="160"
y="80"
width="410"
height="175"
id="rect5128" />
<marker
style="overflow:visible"
id="Arrow2-6"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Arrow2"
markerWidth="7.6999998"
markerHeight="5.5999999"
viewBox="0 0 7.7 5.6"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.7)"
d="M -2,-4 9,0 -2,4 c 2,-2.33 2,-5.66 0,-8 z"
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
id="arrow2L-6" />
</marker>
</defs>
<g
inkscape:label="Слой 1"
inkscape:groupmode="layer"
id="layer1"
style="display:inline;fill:url(#linearGradient3698);fill-opacity:1">
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="50.020206"
y="34.764507"
id="text447"><tspan
sodipodi:role="line"
id="tspan445"
style="fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="50.020206"
y="34.764507">...</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.742828"
y="40.034657"
id="text451"><tspan
sodipodi:role="line"
id="tspan449"
style="fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.742828"
y="40.034657">Процесс 3</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.835289"
y="44.934975"
id="text455"><tspan
sodipodi:role="line"
id="tspan453"
style="fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.835289"
y="44.934975">Процесс 2</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.927746"
y="50.020206"
id="text459"><tspan
sodipodi:role="line"
id="tspan457"
style="fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.927746"
y="50.020206">Процесс 1</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.927746"
y="54.828064"
id="text463"><tspan
sodipodi:role="line"
id="tspan461"
style="fill:#000000;fill-opacity:1;stroke-width:0.264583;stroke:none;stroke-opacity:1"
x="49.927746"
y="54.828064">Процесс 0</tspan></text>
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.165;stroke-dasharray:none;stroke-opacity:1"
d="M 70.114583,55.5625 H 75.40625 V 43.65625 h 5.291667 v 5.291667 h 5.291666 V 38.364583 H 91.28125 V 55.5625 h 5.291667 V 43.65625 h 5.291663 v 5.291667 h 5.29167 V 38.364583 h 5.29167 v 5.291667 h 5.29166 v 5.291667 h 5.29167"
id="path553"
sodipodi:nodetypes="cccccccccccccccccccc" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.165;stroke-dasharray:none;stroke-opacity:1"
d="m 70.114583,48.947917 h 5.291667 l 0,6.614583 h 5.291667 v 0 h 5.291666 l 0,0 h 5.291667 v -6.614583 h 5.291667 l 0,-10.583334 h 5.291663 l 0,0 h 5.29167 l 0,10.583334 h 5.29167 l 0,6.614583 h 5.29166 v 0 h 3.96875"
id="path553-8"
sodipodi:nodetypes="cccccccccccccccccccc" />
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-dasharray:none"
x="64.822914"
y="30.427084"
id="text4693"><tspan
sodipodi:role="line"
id="tspan4691"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2"
x="64.822914"
y="30.427084">Процессор компьютера</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none"
x="116.41666"
y="59.53125"
id="text4747"><tspan
sodipodi:role="line"
id="tspan4745"
style="stroke-width:2;fill:#000000;fill-opacity:1"
x="116.41666"
y="59.53125">Время</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none;stroke:none;stroke-opacity:1"
x="124.35416"
y="48.947914"
id="text4751"><tspan
sodipodi:role="line"
id="tspan4749"
style="stroke-width:2;fill:#000000;stroke:none;stroke-opacity:1;fill-opacity:1"
x="124.35416"
y="48.947914">...</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none"
x="74.083336"
y="59.53125"
id="text4755"><tspan
sodipodi:role="line"
id="tspan4753"
style="stroke-width:2;fill:#000000;fill-opacity:1"
x="74.083336"
y="59.53125">вкл</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none;stroke:none"
x="82.020836"
y="62.177082"
id="text4865"><tspan
sodipodi:role="line"
id="tspan4863"
style="stroke-width:2;stroke:none;fill:#000000;fill-opacity:1"
x="82.020836"
y="62.177082">HyperThreading</tspan></text>
<path
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 75.406249,43.656249 h 5.291667"
id="path6534" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 80.697916,48.947916 h 5.291666"
id="path6536" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 91.281249,55.562499 h 5.291666"
id="path6540" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 96.572915,43.656249 h 5.291665"
id="path6542" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 85.989583,38.364583 h 5.291665"
id="path6542-9" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 70.114581,55.562499 h 5.291665"
id="path6542-3" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 101.86458,48.947916 h 5.29167"
id="path6544" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 107.15625,38.364583 h 5.29167"
id="path6546" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 112.44792,43.656249 h 5.29166"
id="path6548" />
<path
style="fill:none;fill-opacity:1;stroke-width:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
d="m 117.73958,48.947916 h 5.29167"
id="path6550" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.2;stroke-linecap:square;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2);marker-end:url(#Arrow2)"
d="m 68.791667,33.072917 v 23.8125 l 55.562503,1e-6"
id="path7312"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1"
d="m 70.114582,48.947916 h 5.291667"
id="path7496" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:square;stroke-dasharray:none;stroke-opacity:1"
d="m 75.406249,55.562499 h 15.875"
id="path7498" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1"
d="m 91.281249,48.947916 h 5.291666"
id="path7500" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1"
d="M 96.572915,38.364583 H 107.15625"
id="path7502" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1"
d="m 107.15625,48.947916 h 5.29167"
id="path7504" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1"
d="m 112.44792,55.562499 h 10.58333"
id="path7506" />
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.99999"
y="19.84375"
id="text447-9"><tspan
sodipodi:role="line"
id="tspan445-0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.99999"
y="19.84375">...</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.72261"
y="25.113899"
id="text451-8"><tspan
sodipodi:role="line"
id="tspan449-8"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.72261"
y="25.113899">Поток 3</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.81507"
y="30.014217"
id="text455-3"><tspan
sodipodi:role="line"
id="tspan453-1"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.81507"
y="30.014217">Поток 2</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.90753"
y="35.099449"
id="text459-1"><tspan
sodipodi:role="line"
id="tspan457-0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.90753"
y="35.099449">Поток 1</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.90753"
y="39.90731"
id="text463-3"><tspan
sodipodi:role="line"
id="tspan461-0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-opacity:1"
x="126.90753"
y="39.90731">Поток 0</tspan></text>
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.165;stroke-dasharray:none;stroke-opacity:1"
d="m 141.55207,41.010417 h 5.29167 v -11.90625 h 5.29167 v 5.291667 h 5.29166 V 23.8125 h 5.29167 v 17.197917 h 5.29167 v -11.90625 h 5.29166 v 5.291667 h 5.29167 V 23.8125 h 5.29167 v 5.291667 h 5.29166 v 5.291667 h 5.29167"
id="path553-5"
sodipodi:nodetypes="cccccccccccccccccccc" />
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-dasharray:none"
x="136.26042"
y="15.875"
id="text4693-4"><tspan
sodipodi:role="line"
id="tspan4691-7"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2"
x="136.26042"
y="15.875">Один процесс с системе</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none"
x="187.85416"
y="44.979164"
id="text4747-2"><tspan
sodipodi:role="line"
id="tspan4745-6"
style="fill:#000000;fill-opacity:1;stroke-width:2"
x="187.85416"
y="44.979164">Время</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-dasharray:none;stroke-opacity:1"
x="195.79166"
y="34.395828"
id="text4751-6"><tspan
sodipodi:role="line"
id="tspan4749-4"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-opacity:1"
x="195.79166"
y="34.395828">...</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke-width:2;stroke-dasharray:none"
x="140.22917"
y="44.979164"
id="text4755-8"><tspan
sodipodi:role="line"
id="tspan4753-7"
style="fill:#000000;fill-opacity:1;stroke-width:2"
x="140.22917"
y="44.979164">старт</tspan></text>
<text
xml:space="preserve"
style="font-size:3.175px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-dasharray:none"
x="154.78125"
y="47.625"
id="text4865-1"><tspan
sodipodi:role="line"
id="tspan4863-2"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2"
x="154.78125"
y="47.625">Многопоточность</tspan></text>
<path
style="display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 146.84374,29.104166 h 5.29167"
id="path6534-7" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 152.13541,34.395833 h 5.29166"
id="path6536-7" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 162.71874,41.010416 h 5.29167"
id="path6540-5" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 168.01041,29.104166 h 5.29166"
id="path6542-5" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 157.42707,23.8125 h 5.29167"
id="path6542-9-7" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 141.55207,41.010416 h 5.29167"
id="path6542-3-4" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 173.30207,34.395833 h 5.29167"
id="path6544-3" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 178.59374,23.8125 h 5.29167"
id="path6546-9" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 183.88541,29.104166 h 5.29166"
id="path6548-4" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1"
d="m 189.17707,34.395833 h 5.29167"
id="path6550-3" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.2;stroke-linecap:square;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2-6);marker-end:url(#Arrow2-6)"
d="m 140.22916,18.520833 v 23.8125 l 55.5625,10e-7"
id="path7312-1" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.3;stroke-linecap:butt;stroke-dasharray:1.80000007,1.80000007;stroke-opacity:1;stroke-dashoffset:0"
id="path9450"
cx="99.21875"
cy="38.364582"
rx="15.875"
ry="2.6458333" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.3;stroke-linecap:butt;stroke-dasharray:1.8, 1.8;stroke-dashoffset:0;stroke-opacity:1"
d="m 113.77083,39.6875 26.45833,6.614583"
id="path9452" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.3;stroke-linecap:butt;stroke-dasharray:1.8, 1.8;stroke-dashoffset:0;stroke-opacity:1"
d="M 103.1875,35.71875 127,14.552083"
id="path9454" />
</g>
</svg>