Threading vs single thread

前端 未结 8 962
清歌不尽
清歌不尽 2020-12-04 13:32

Is it always guaranteed that a multi-threaded application would run faster than a single threaded application?

I have two threads that populates data from a data so

8条回答
  •  无人及你
    2020-12-04 14:06

    Of course not. Threading imposes overhead, so whether the application benefits depends how parallel it is.

提交回复
热议问题