What is a virus

This is a discussion on What is a virus within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Are there rules that decide if a given program is a virus?
If I maka a simple program that creates ...

What is a virus

Are there rules that decide if a given program is a virus?

If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?

If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?

No. A virus is a program which embeds itself in another program, and uses the execution of the infected program as a means of spreading itself. The program you are describing is a plain old denial-of-service attack.

If I maka a simple program that creates a txt file somewhere in system directory (ex. WINDOWS\system32) and via a infinite loop writes text to the file eventualy filling up a hard drive, is that program a virus ?

I think malware is here the genius. For a definition of the words malware and virus propose using wikipedia.

As brewbuck said.
You may also want to check on these names: trojan horse, computer worm, malware, and even spyware.

Unfortunately, like with many other things these days, proper usage of these terms is being deterred by the Pop Culture For The Masses perpetrated by the media at large; my term, so take it as you want. It just means this horrendous idea that people are ignorant and incapable of learning and as such its easier if you just cut down on the lingo and adopt the catch phrases instead.

The press loves it and is the main responsible for the confusion on this and many other issues - "hackers" being another one that is today totally devoid of its true meaning. The world of computing was a much more accurate place before it become news. Some of the things I hear on prime time news... sorry, need to check my blood pressure.

Anyways, ranting aside, check those terms on wikipedia, for starters, if you want to have a more accurate description of their meanings.

Brewbuck's definition of a computer virus is correct; as in it behaves like a biological virus. The word is often used to describe malware in general, but this is misleading. For example a lot of anti-virus software wont protect you from all malware such as rootkits or spyware, which seem to be more a threat than viruses nowadays.