Arama Sonuçları: "#MultiThreading"

20 sonuç
Shankar Das
Shankar Das@shankardas007·
Java Journey – Day 49 ☕🧵 Today I completed Lecture 49 on Java Thread Methods. Learned methods like: • start(). • sleep() • isAlive(). • join() • setPriority(). • currentThread() Thanks Rohit Negi & Aditya Tandon 🙌 #Java #Multithreading #CodingJourney
Shankar Das tweet mediaShankar Das tweet media
English
0
0
2
15
BITBEE
BITBEE@bitbee24·
Java - Parallel Streams (Interview faq) Parallel streams in Java look simple… but there’s more happening under the hood. • Uses ForkJoinPool • Works best for CPU-bound tasks • Stateless ops = safer concurrency • Shared state = hidden bugs #java #multithreading #programming
BITBEE tweet media
English
1
0
1
62
BITBEE
BITBEE@bitbee24·
Java - Parallel Streams (Interview faq) Parallel streams in Java look simple… but there’s more happening under the hood. • Uses ForkJoinPool • Works best for CPU-bound tasks • Stateless ops = safer concurrency • Shared state = hidden bugs #java #multithreading #programming
English
1
0
2
1.1K
BITBEE
BITBEE@bitbee24·
Java - Parallel Streams (Interview faq) Parallel streams in Java look simple… but there’s more happening under the hood. • Uses ForkJoinPool • Works best for CPU-bound tasks • Stateless ops = safer concurrency • Shared state = hidden bugs #java #multithreading #programming
BITBEE tweet media
English
1
0
3
565
TrueAsync
TrueAsync@Edmondif143061·
This leads me to think that #PHP has no progress in #multithreading whatsoever: Yesterday I posted a bug in the #php official repository, then removed it because I was sure I was wrong. Today I spent the whole day trying to understand what was going on. Is the bug complex? No. What turned out to be difficult was accepting that it actually exists. Why was it hard? Because it was hard to believe that PHP has essentially neglected multithreading. October 27, 2017 Dmitry Stogov introduced the ZEND_RC_MOD_CHECK macros (commit 49ea143bbd) with the explicit goal: "these macros are going to be used to eliminate race-conditions during reference-counting on data shared between threads". Initially, the checks were disabled ("disabled for now").The idea was to avoid performing ref_count operations on data structures in persistent memory, since such memory could be shared between threads. Logical? Yes. However, it later turned out that some persistent data is actually needed by a specific thread and can safely modify ref_count. November 1, 2017 — he added the GC_PERSISTENT_LOCAL flag (commit cf582a32ef, "Allow reference-counting on 'thread-local' persistent zvals"), allowing persistent data to be marked as thread-local and thus bypass the check.Logical? Perhaps. However, most of the PHP core and its extensions do not use the GC_PERSISTENT_LOCAL flag during initialization. As a result, this check mode triggers errors when PHP code creates additional PHP threads. The mode exists. The flag exists. The code doesn’t work. And in practice, if you don’t enable this check and don’t use PHP threads, no one will notice.
English
0
0
6
237
Vroble.com
Vroble.com@Vroble_·
SMT (Hyperthreading) can *hurt* perf! 🤯 Logical cores share resources, causing contention. Latency-sensitive apps might see 20-30% *slower* execution vs. dedicated physical cores. Pin to physical! 🚀 #PerfEng #Multithreading
English
0
0
0
2
John Straumann
John Straumann@JohnStraumann·
Use Visual Studio Code's built-in debugger with thread-specific breakpoints and the Threads window to monitor and control each thread independently. This helps isolate issues in multi-threaded apps efficiently. #Debugging #VSCode #Multithreading @code
English
0
0
0
25
Akshay M
Akshay M@akshayxml·
In C++, when using `std::map` with custom comparators, remember that the comparator must be copied and then passed to `std::map` constructor, rather than being passed by reference or pointer. This ensures thread safety and prevents unexpected behavior. #CPlusPlus #Multithreading
English
0
0
0
9