you li

Greenhorn
+ Follow
since Jan 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by you li

or if you dont want that for whatever reason i cant think of
printStracktrace also accepts a printstream as parameter. thus you can create a printstream to a file and voila.
14 years ago
a) yes the bitsets are maintained as bits. actually its maintained as an array of long. and every long in the array can hold a number of bits. so basically it is loaded into ram the same way the vm loads a long. the toString prints the position by walking trough all positions and see if it is set or not. if it is it prints the position.

b) i suspect the actual increase is roughly 12mb. but a lot of extra factors make it not as consistent. thinking of garbage collection, overhead in the cloning and other things. i am sorry i cannot be more specifick this is purely a guess based on my limited knowledge of the memory management of java
14 years ago


this is the code of my first tryout server in java i can with the proper client send "ik" and get "ben", send "jij" and get "bent".(im dutch) it works fine and i can send and receive as many time i like. maybe its of some use.

i do however have another question. how do i make it possible for my server to accept more than one client simultanious?
[ January 17, 2005: Message edited by: youri lima ]