CPU Intensive Calculation Examples?

后端 未结 7 792
轻奢々
轻奢々 2020-12-01 05:12

I need a few easily implementable single cpu and memory intensive calculations that I can write in java for a test thread scheduler.

They should be slightly time con

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 06:05

    Ok this is not Java, but this is based on Dhrystone benchmark algorithm found here. These implementations of the algorithm might give you an idea on how is it done. The link here contains sources to C/C++ and Assembler to obtain the benchmarks.

提交回复
热议问题