首页 > 试题广场 >

Provide two programming exampl

[问答题]
Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution
推荐
(1)Any kind of sequential program is not a good candidate to be threaded.An example of this is a program that calculates an individual tax return.(2)Another example is a "shell" program such as the C-shell or Korn shell.Such a program must closely monitor its own working space such as open files,environment variables,and current working directory.
发表于 2018-05-05 22:03:00 回复(0)