• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swap method

 
RV Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
what is swapping in java ?
pls respond
 
Deepoo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swap is a term "used" regularly in programming languages to indicate an exchange / interchange of values between 2 instances of the same object or type. It does not pertain only to Java.
There are a few forums on this website that have discussed this topic in the past. This link should give you a better idea about it.
http://www.javaranch.com/ubb/Forum33/HTML/000212.html
Also, I think you have posted this topic in a forum that discusses Applets. I guess you should be posting such requests in the "Java in General" forum.
Deepak

[This message has been edited by Deepoo (edited July 21, 2000).]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"swapping" is also a term used to describe the process of moving chunks of data from memory to disc and back again as needed. This allows a computer to pretend it has more memory than it really has, and frees the individual applications from having to worry about managing their own memory usage.
For example, if I have ten programs running on my machine with 64MB of main memory and 256MB of "swap space" on a disc. Each of those programs can use any amount of memory, as long as the total is less than 256MB. Any programs which are waiting for something may be "swapped" out to disc, to allow more main memory for the others which are actively running. When a program needs to restart it can be loaded back in to main memory and continue as before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic