CS代考程序代写 Java 10/21/2019 CSCI 561 (195 unread)

10/21/2019 CSCI 561 (195 unread)
question
275 views
Runtime Specification for HW2
Hi,
I am wondering if we could know information about the runtime our programs are running in HW2? More specifically, could we learn the memory limit for running our program and the
maximum bytes we can write in playdata.txt at one time? Or do we need to write our calibrate.xxx mentioned in the homework statement to figure the memory limit? Thanks in advance.
Updated 5 days ago by Anonymous
the students’ answer, where students collectively construct a single answer
As per the TA’s anwser in @566, the maximum size of playdata.txt is 1GB.
Updated 2 days ago by Anonymous
the instructors’ answer, where instructors collectively construct a single answer
You can write what you want in playdata.txt, but until @Qian Wang gives some kind of authoritative statement about its size, I would suggest to keep it real, i.e., to put no more than maybe a few MB at most in there.
For memory limits, this would depend on where we end up running your code, but to really be safe, I would go with what’s said here:
https://stackoverflow.com/questions/28272923/default-xmxsize-in-java-8
I think it’s safe to assume that even if we’d run everyone’s code in a VM, that VM would have at least 1GB of memory, so you’d get at least 256 MB for the JVM. Please note that everything I post here is just what I’m expecting as of right now and in no way authoritative. Wait for @Qian Wang to reply.
Updated 5 days ago by Daniel Link
followup discussions for lingering questions and comments
https://piazza.com/class/jzob0qt1owq15p?cid=455
1/1
2wh