powered by simpleCommunicator - 2.0.50     © 2025 Programmizd 02
Форумы / Программирование [игнор отключен] [закрыт для гостей] / Особенности многопоточности виндовса и линукса, AMD и Intel
16 сообщений из 116, страница 5 из 5
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39800931
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Смержил.

Это будет финальный вариант? Войдет в статистику?
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39800940
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
maytonСмержил.

Это будет финальный вариант? Войдет в статистику?
Это исходный вариант библиотеки акторов, надеюсь будет финальным. Покажи лог его запуска у тебя.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39800966
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
И все-таки я не могу понять почему у тебя rand() так все затормозил.

Ты выше писал что у тебя Ubuntu 18.x.x LTS x64, я запускал у себя под Ubuntu 18.04.2 LTS x64 и проблема не повторялась.

Хотя был странный результат 21859864 на ноуте с AMD, сейчас перемеряю.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39800970
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну.. если множество потоков владеют состоянием функции rand() то они требуют
наложить volatile на переменную состояния этой функции. Это влечет за собой
синхронизацию памяти кешей всех заинтересованных потоков.

Выделение персональной переменной rand для каждого потока - решает эту проблему.

Я так думаю.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801088
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Переделал блочный режим. Добавил помощь отстающим потокам. По скорости у меня оно чуть-чуть отстает от акторов построчно.

Обновись. Запусти у себя все три. Достаточно результатов 12-поточного запуска. Если будет близкое время - оставим блочный вариант, как самый понятный.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801091
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
OK.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801092
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Готово. Под катом логи.
Код: sql
1.
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.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
446.
447.
448.
449.
450.
451.
452.
453.
454.
455.
456.
457.
458.
459.
460.
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
471.
472.
473.
474.
475.
476.
477.
478.
479.
480.
481.
482.
483.
484.
485.
486.
487.
488.
489.
#!/bin/bash -v

for i in {1..12}
do
 time ./card-raytracer-cpp-mt.exe mt-$i.ppm $i
done
compile Apr 14 2019 17:42:11
     0: test 1 threads to file mt-1.ppm
     1: start thread#0 (lines 0...511)
  8243: thread#0 finished
  8270: test end

real	0m8.273s
user	0m8.271s
sys	0m0.000s
compile Apr 14 2019 17:42:11
     0: test 2 threads to file mt-2.ppm
     1: start thread#0 (lines 0...255)
     1: start thread#1 (lines 256...511)
  3165: thread#1 help to thread#0  81 rows
  4211: thread#1 finished
  4226: thread#0 finished
  4235: test end

real	0m4.238s
user	0m8.458s
sys	0m0.004s
compile Apr 14 2019 17:42:11
     0: test 3 threads to file mt-3.ppm
     1: start thread#0 (lines 0...169)
     1: start thread#2 (lines 340...511)
     1: start thread#1 (lines 170...339)
  1576: thread#2 help to thread#1  112 rows
  2851: thread#2 help to thread#0  14 rows
  2964: thread#1 finished
  2977: thread#0 finished
  2986: thread#2 finished
  3009: test end

real	0m3.012s
user	0m8.950s
sys	0m0.000s
compile Apr 14 2019 17:42:11
     0: test 4 threads to file mt-4.ppm
     1: start thread#0 (lines 0...127)
     1: start thread#1 (lines 128...255)
     1: start thread#2 (lines 256...383)
     1: start thread#3 (lines 384...511)
  1087: thread#3 help to thread#1  88 rows
  2085: thread#0 help to thread#2  19 rows
  2230: thread#2 finished
  2231: thread#3 finished
  2237: thread#0 finished
  2249: thread#1 finished
  2261: test end

real	0m2.264s
user	0m8.972s
sys	0m0.004s
compile Apr 14 2019 17:42:11
     0: test 5 threads to file mt-5.ppm
     0: start thread#0 (lines 0...101)
     0: start thread#1 (lines 102...203)
     0: start thread#2 (lines 204...305)
     0: start thread#4 (lines 408...511)
     0: start thread#3 (lines 306...407)
  1021: thread#4 help to thread#2  66 rows
  1501: thread#3 help to thread#1  41 rows
  1833: thread#0 finished
  1834: thread#1 finished
  1844: thread#4 finished
  1849: thread#2 finished
  1855: thread#3 finished
  1877: test end

real	0m1.879s
user	0m9.236s
sys	0m0.004s
compile Apr 14 2019 17:42:11
     0: test 6 threads to file mt-6.ppm
     1: start thread#0 (lines 0...84)
     1: start thread#1 (lines 85...169)
     1: start thread#2 (lines 170...254)
     1: start thread#3 (lines 255...339)
     1: start thread#4 (lines 340...424)
     1: start thread#5 (lines 425...511)
   757: thread#5 help to thread#2  56 rows
   882: thread#4 help to thread#3  47 rows
  1313: thread#0 help to thread#1  23 rows
  1508: thread#1 finished
  1513: thread#4 finished
  1516: thread#0 finished
  1522: thread#5 finished
  1524: thread#3 finished
  1524: thread#2 finished
  1544: test end

real	0m1.547s
user	0m9.119s
sys	0m0.008s
compile Apr 14 2019 17:42:11
     0: test 7 threads to file mt-7.ppm
     1: start thread#0 (lines 0...72)
     1: start thread#1 (lines 73...145)
     1: start thread#2 (lines 146...218)
     1: start thread#3 (lines 219...291)
     1: start thread#4 (lines 292...364)
     1: start thread#5 (lines 365...437)
     1: start thread#6 (lines 438...511)
   635: thread#6 help to thread#3  60 rows
  1074: thread#5 help to thread#2  33 rows
  1100: thread#0 help to thread#4  20 rows
  1217: thread#0 help to thread#1  9 rows
  1432: thread#6 finished
  1444: thread#2 finished
  1446: thread#0 finished
  1446: thread#4 finished
  1454: thread#3 finished
  1454: thread#1 finished
  1462: thread#5 finished
  1482: test end

real	0m1.485s
user	0m10.144s
sys	0m0.012s
compile Apr 14 2019 17:42:11
     0: test 8 threads to file mt-8.ppm
     1: start thread#0 (lines 0...63)
     1: start thread#2 (lines 128...191)
     1: start thread#1 (lines 64...127)
     1: start thread#3 (lines 192...255)
     1: start thread#4 (lines 256...319)
     1: start thread#5 (lines 320...383)
     1: start thread#6 (lines 384...447)
     1: start thread#7 (lines 448...511)
   547: thread#7 help to thread#3  53 rows
   551: thread#6 help to thread#2  51 rows
   972: thread#0 help to thread#4  36 rows
  1133: thread#1 help to thread#5  19 rows
  1404: thread#6 finished
  1408: thread#5 finished
  1423: thread#1 finished
  1423: thread#0 finished
  1423: thread#7 finished
  1426: thread#4 finished
  1436: thread#3 finished
ERROR: Row not ready
  1442: thread#2 finished
  1449: test end

real	0m1.452s
user	0m11.399s
sys	0m0.008s
compile Apr 14 2019 17:42:11
     0: test 9 threads to file mt-9.ppm
     0: start thread#0 (lines 0...55)
     1: start thread#1 (lines 56...111)
     1: start thread#2 (lines 112...167)
     1: start thread#3 (lines 168...223)
     1: start thread#4 (lines 224...279)
     1: start thread#5 (lines 280...335)
     1: start thread#6 (lines 336...391)
     1: start thread#7 (lines 392...447)
     1: start thread#8 (lines 448...511)
   794: thread#7 help to thread#4  37 rows
   906: thread#8 help to thread#3  34 rows
  1063: thread#6 help to thread#2  26 rows
  1368: thread#7 help to thread#1  6 rows
  1454: thread#2 finished
  1467: thread#4 finished
  1473: thread#6 finished
  1475: thread#5 finished
  1479: thread#0 finished
  1487: thread#8 finished
  1493: thread#7 finished
  1493: thread#3 finished
  1495: thread#1 finished
  1511: test end

real	0m1.514s
user	0m13.324s
sys	0m0.008s
compile Apr 14 2019 17:42:11
     0: test 10 threads to file mt-10.ppm
     1: start thread#0 (lines 0...50)
     1: start thread#1 (lines 51...101)
     1: start thread#2 (lines 102...152)
     1: start thread#3 (lines 153...203)
     1: start thread#4 (lines 204...254)
     1: start thread#5 (lines 255...305)
     1: start thread#6 (lines 306...356)
     1: start thread#7 (lines 357...407)
     1: start thread#8 (lines 408...458)
     1: start thread#9 (lines 459...511)
   487: thread#7 help to thread#4  42 rows
   721: thread#8 help to thread#3  36 rows
   738: thread#9 help to thread#6  31 rows
  1110: thread#9 help to thread#5  20 rows
  1123: thread#6 help to thread#0  9 rows
  1226: thread#6 help to thread#1  4 rows
  1320: thread#2 finished
  1323: thread#7 finished
  1328: thread#1 finished
  1329: thread#3 finished
  1334: thread#4 finished
  1341: thread#5 finished
  1342: thread#6 finished
  1342: thread#8 finished
  1346: thread#0 finished
  1350: thread#9 finished
  1373: test end

real	0m1.376s
user	0m13.364s
sys	0m0.004s
compile Apr 14 2019 17:42:11
     0: test 11 threads to file mt-11.ppm
     1: start thread#0 (lines 0...45)
     1: start thread#1 (lines 46...91)
     1: start thread#2 (lines 92...137)
     1: start thread#3 (lines 138...183)
     1: start thread#4 (lines 184...229)
     1: start thread#5 (lines 230...275)
     1: start thread#6 (lines 276...321)
     1: start thread#8 (lines 368...413)
     1: start thread#9 (lines 414...459)
     1: start thread#10 (lines 460...511)
     2: start thread#7 (lines 322...367)
   656: thread#9 help to thread#3  33 rows
   699: thread#8 help to thread#5  31 rows
   729: thread#10 help to thread#6  27 rows
  1113: thread#7 help to thread#2  13 rows
  1189: thread#1 help to thread#4  5 rows
  1276: thread#7 finished
  1279: thread#0 finished
  1280: thread#9 finished
  1281: thread#2 finished
  1283: thread#4 finished
  1285: thread#8 finished
  1292: thread#10 finished
  1303: thread#1 finished
  1304: thread#5 finished
  1307: thread#6 finished
  1311: thread#3 finished
  1319: test end

real	0m1.322s
user	0m14.206s
sys	0m0.004s
compile Apr 14 2019 17:42:11
     0: test 12 threads to file mt-12.ppm
     1: start thread#0 (lines 0...41)
     1: start thread#1 (lines 42...83)
     1: start thread#2 (lines 84...125)
     1: start thread#3 (lines 126...167)
     1: start thread#4 (lines 168...209)
     1: start thread#5 (lines 210...251)
     1: start thread#6 (lines 252...293)
     1: start thread#7 (lines 294...335)
     1: start thread#8 (lines 336...377)
     4: start thread#11 (lines 462...511)
     4: start thread#10 (lines 420...461)
    16: start thread#9 (lines 378...419)
   599: thread#10 help to thread#5  31 rows
   615: thread#9 help to thread#7  29 rows
   710: thread#11 help to thread#3  26 rows
   847: thread#8 help to thread#4  23 rows
  1071: thread#9 help to thread#6  14 rows
  1077: thread#7 help to thread#2  8 rows
  1246: thread#2 finished
  1248: thread#11 finished
  1251: thread#3 finished
  1255: thread#10 finished
  1260: thread#5 finished
  1262: thread#0 finished
  1262: thread#8 finished
  1263: thread#6 finished
  1265: thread#9 finished
  1267: thread#1 finished
  1269: thread#7 finished
ERROR: Row not ready
  1272: thread#4 finished
  1283: test end

real	0m1.286s
user	0m14.992s
sys	0m0.024s

for i in {1..12}
do
 time ./card-raytracer-cpp-actor.exe actor-$i.ppm $i
done
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 1 threads to file actor-1.ppm ...
Init end: 38 msec
Time: 8729 msec

real	0m8.735s
user	0m9.332s
sys	0m0.813s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 2 threads to file actor-2.ppm ...
Init end: 54 msec
Time: 4582 msec

real	0m4.586s
user	0m9.843s
sys	0m0.853s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 3 threads to file actor-3.ppm ...
Init end: 127 msec
Time: 3171 msec

real	0m3.174s
user	0m9.973s
sys	0m0.577s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 4 threads to file actor-4.ppm ...
Init end: 178 msec
Time: 2427 msec

real	0m2.430s
user	0m9.851s
sys	0m0.609s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 5 threads to file actor-5.ppm ...
Init end: 261 msec
Time: 2055 msec

real	0m2.058s
user	0m10.380s
sys	0m0.482s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 6 threads to file actor-6.ppm ...
Init end: 260 msec
Time: 1759 msec

real	0m1.761s
user	0m10.554s
sys	0m0.458s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 7 threads to file actor-7.ppm ...
Init end: 284 msec
Time: 1637 msec

real	0m1.640s
user	0m11.393s
sys	0m0.493s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 8 threads to file actor-8.ppm ...
Init end: 294 msec
Time: 1588 msec

real	0m1.591s
user	0m12.664s
sys	0m0.430s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 9 threads to file actor-9.ppm ...
Init end: 308 msec
Time: 1519 msec

real	0m1.522s
user	0m13.515s
sys	0m0.466s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 10 threads to file actor-10.ppm ...
Init end: 307 msec
Time: 1448 msec

real	0m1.450s
user	0m14.166s
sys	0m0.506s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 11 threads to file actor-11.ppm ...
Init end: 279 msec
Time: 1399 msec

real	0m1.402s
user	0m14.933s
sys	0m0.541s
compile Apr 14 2019 17:42:07   LOCK: spinlock + Sleep(0)
lite_thread 12 threads to file actor-12.ppm ...
Init end: 281 msec
Time: 1373 msec

real	0m1.376s
user	0m14.977s
sys	0m0.636s

for i in {1..12}
do
 time ./card-raytracer-cpp-actor3.exe actor3-$i.ppm $i
done
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 1 threads to file actor3-1.ppm ...
Init end: 0 msec
Time: 8070 msec

real	0m8.072s
user	0m8.115s
sys	0m0.008s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 2 threads to file actor3-2.ppm ...
Init end: 1 msec
Time: 4258 msec

real	0m4.261s
user	0m8.542s
sys	0m0.024s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 3 threads to file actor3-3.ppm ...
Init end: 1 msec
Time: 2950 msec

real	0m2.953s
user	0m8.855s
sys	0m0.016s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 4 threads to file actor3-4.ppm ...
Init end: 1 msec
Time: 2229 msec

real	0m2.232s
user	0m8.935s
sys	0m0.016s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 5 threads to file actor3-5.ppm ...
Init end: 1 msec
Time: 1784 msec

real	0m1.787s
user	0m8.896s
sys	0m0.012s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 6 threads to file actor3-6.ppm ...
Init end: 0 msec
Time: 1535 msec

real	0m1.537s
user	0m9.207s
sys	0m0.004s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 7 threads to file actor3-7.ppm ...
Init end: 0 msec
Time: 1440 msec

real	0m1.442s
user	0m10.037s
sys	0m0.000s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 8 threads to file actor3-8.ppm ...
Init end: 1 msec
Time: 1404 msec

real	0m1.406s
user	0m11.181s
sys	0m0.000s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 9 threads to file actor3-9.ppm ...
Init end: 1 msec
Time: 1358 msec

real	0m1.360s
user	0m12.121s
sys	0m0.036s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 10 threads to file actor3-10.ppm ...
Init end: 2 msec
Time: 1328 msec

real	0m1.330s
user	0m13.181s
sys	0m0.000s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 11 threads to file actor3-11.ppm ...
Init end: 1 msec
Time: 1284 msec

real	0m1.286s
user	0m14.038s
sys	0m0.020s
compile Apr 14 2019 17:42:09   LOCK: spinlock + Sleep(0)
lite_thread 12 threads to file actor3-12.ppm ...
Init end: 1 msec
Time: 1260 msec

real	0m1.262s
user	0m14.933s
sys	0m0.000s

...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801098
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
mayton
Код: sql
1.
ERROR: Row not ready


Это невозможно, но как-то случилось (((
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801105
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Понял в чем ошибка. Поправил и акторы убрал.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801136
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Dima TПонял в чем ошибка. Поправил и акторы убрал.
Не могу смержить. Конфликтует файл cpp-mt/run.sh
Это то куда я вносил изменения.
Тебе надо снова смержится с мастером и применить изменения.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801160
Siemargl
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Dima TmaytonЯ смотрю после 4 потока еще перформанс растет. Расширю до 12.
kealon(Ruslan) был прав 21860492 тормозил rand()
...Это еще три года назад было выяснено.
Возьми реализацию ранда из моей топовой реализации (она не моя, какого то профи по шифрам).

И утомили спамить коммитами....Тестите там на кошках сначала чтоле =)
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801161
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Зяма привет. Ты чего такой злой сегодня?
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801225
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
maytonDima TПонял в чем ошибка. Поправил и акторы убрал.
Не могу смержить. Конфликтует файл cpp-mt/run.sh
Это то куда я вносил изменения.
Тебе надо снова смержится с мастером и применить изменения.
У меня клиент TortoiseSVN, не нашел как смерживать с тобой. На сайте гитхаба тоже не нашел такой кнопки. Вобщем грохнул и форкнул заново.

Переделал многопоточный вариант. Теперь все просто и быстро: добавил состояние строки, все потоки тупо перебирают все строки и считают каждую попавшуюся в состоянии "не обработано". По окончании всех потоков запись результата в файл.

Запушил.

PS На этом думаю можно остановиться. Можно еще запись в файл запараллелить, но она всего 10-15 мс.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801329
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Dima T, OK. Я смержу.

Странно что ты выбрал тул который тебе не очень подходит.

Смотри. Я уж лет 10 не работал в Вижуал Студии. Но подозреваю что ты в ней все время.
Там есть поддержка гита. Вроде-бы тут пишут.

https://docs.microsoft.com/en-us/azure/devops/repos/git/rebase?view=azure-devops&tabs=visual-studio

Для смёрживания есть 2 стратегии.
- merge (это когда ты вливаешь в себя изменения из главной ветки (неважно какой но обычно это master)
- merge with rebase (это когда ты как-бы снова форкаешся от головной ревизии и применяешь шак за шагом к ней
все коммиты. Попутно ресолвишь конфликты).

Обе стратегии - правильные просто надо выбрать какая быстрее и удобнее.

Еще попробуй посмотри в такие утилиты как GitGui (GitBash) обычно они идут в паре. GitBash
это такое себе окружение баша в Windows.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801415
Dima T
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
maytonСтранно что ты выбрал тул который тебе не очень подходит.
У меня в локалке Subversion SVN-сервер поднят уже лет 10 как, ну и клиент под него. Для работы хватает.

Надо будет как-нибудь потестить git-клиента. Думаю они меж собой уживутся, если оба поставить.
...
Рейтинг: 0 / 0
Особенности многопоточности виндовса и линукса, AMD и Intel
    #39801805
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Смержил.
...
Рейтинг: 0 / 0
16 сообщений из 116, страница 5 из 5
Форумы / Программирование [игнор отключен] [закрыт для гостей] / Особенности многопоточности виндовса и линукса, AMD и Intel
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]