What would my computer do if I wrote these programs?

This is a discussion on What would my computer do if I wrote these programs? within the C++ Programming forums, part of the General Programming Boards category; What would happen if I wrote these two programs amd just let them run: 1. A program that just constantly ...

  1. #1
    System.out.println("");
    Join Date
    Jan 2005
    Posts
    84

    What would my computer do if I wrote these programs?

    What would happen if I wrote these two programs amd just let them run:

    1. A program that just constantly created files in a particular directory without ever ending?

    2. If I dumped tons of data into a particular file (text, html, etc) and just let the program run until something happened?

    I suspect that the OS would kick in before you did too much, but I didn't know. They are really easy to write, but I was hesitant to test it out on my computer since this is really the only good one I have.

    Thanks!

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    1: Windows has a limit on the number of files in a directory...i forget what it is now but our music collection at work broke that folder till we had a perl script go in and sort thins out into sub folders.

    2: You would get a out of room error. Database at work got caught in an endless loop and was spewing error messages to a log file... ended up crashing Oracle cause it couldn't write anymore.

  3. #3
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    I think this site can answer both your questions:

    this

    and for further info, check out this:

    this

    Wraithan, I've gotta check out your music collection some time! You had over 65,534 files in one folder! Impressive!

  4. #4
    System.out.println("");
    Join Date
    Jan 2005
    Posts
    84
    Cool that helps. Thanks guys.

  5. #5
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Yeah we have about 150-175 gigs of music on a shared drive at work. Head programmer bought in a computer just to host music for us... we all just dump all of our CDs to it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tabbed Windows with MDI?
    By willc0de4food in forum Windows Programming
    Replies: 25
    Last Post: 05-19-2005, 10:58 PM
  2. Which distro should I run on my old computer?
    By joshdick in forum Tech Board
    Replies: 5
    Last Post: 04-09-2003, 01:37 AM
  3. Computer Quotes
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 04-01-2003, 07:31 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. computer sex
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-17-2001, 07:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21