Which correct trace is good in 90% of cases?

What practice or practice is good in 90% of cases when working with threads with multiple cores?

Personally, all I did was split the immutable classes and transfer (copy) the data to the queue on the destine stream.

+3
source share
1 answer

This is very vague - but there are a few basic commandments that I will always keep:

  • Make sure slicing makes sense before you implement it.
  • Focusing on algorithms rather than single lines of code when designing for stream processing
  • Possible thread at the highest level
  • Prefer immutable data
  • Synchronize data access accordingly
  • ,
  • (, 1. !)
0

Source: https://habr.com/ru/post/1784202/


All Articles