Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Piece of code that can kill computer performance [closed]

Tags:

performance

c#

I'm searching for code in c# that can kill computer performance (CPU performance, maybe cpu - memory link performance too) as much as it is possible (it will run on 4 core box so I'm going to create 4 threads and run it simultaneously).

Should it work on int / double / numeric data type / should it have some crazy data structures (but it should not take too much memory) .

Do you have any suggestions ?

like image 200
Darqer Avatar asked Jan 13 '11 14:01

Darqer


People also ask

What kind of code controls a computer?

In computer programming, machine code is any low-level programming language, consisting of machine language instructions, which are used to control a computer's central processing unit (CPU).

What is code run from on a computer?

A CPU executes code through a sequence known as the fetch, decode, execute cycle. Once a piece of code is loaded into RAM, the CPU will fetch its contents one by one, decode the contents into binary through the assembler, and then execute the code.

What is a computer program example?

MS Word, MS Excel, Adobe Photoshop, Internet Explorer, Chrome, etc., are examples of computer programs.

How can I increase my CPU?

To give your CPU more power, find the CPU voltage setting. In your BIOS controls, this may be called CPU VCCIN, CPU Vcore, Dynamic Vcore, or simply CPU Voltage. It's usually set to 1.25 or Auto by default. Increase this value slowly, for example to 1.4 or 1.5.


1 Answers

Calculate PI using all processors.

like image 169
Oded Avatar answered Dec 27 '22 13:12

Oded