t*****n 发帖数: 25 | 1 1. Can one thread deadlock itself?
2. what is the size for the object of a class which only has some non-
virtual member function
3. what is the content in the first four bytes of the object
4. how to destroy an object before the end of its scope
5. a phone book has many names and phone numbers, what structure for the
phone book
6. in a stream of words, count the frequency |
t*****n 发帖数: 25 | 2 2:1 byte
其余期待解答,谢谢!
【在 t*****n 的大作中提到】 : 1. Can one thread deadlock itself? : 2. what is the size for the object of a class which only has some non- : virtual member function : 3. what is the content in the first four bytes of the object : 4. how to destroy an object before the end of its scope : 5. a phone book has many names and phone numbers, what structure for the : phone book : 6. in a stream of words, count the frequency
|
h******r 发帖数: 33 | 3
It depends. For example, for some JVM implementation, it is 4 bytes.
It depends. For some JVM implementation, it is a pointer/reference pointing
to class type structure.
For q2 and q3, the best source is to refer to Sun JDK's source codes or IBM'
s Jikes RVM's source codes.
【在 t*****n 的大作中提到】 : 1. Can one thread deadlock itself? : 2. what is the size for the object of a class which only has some non- : virtual member function : 3. what is the content in the first four bytes of the object : 4. how to destroy an object before the end of its scope : 5. a phone book has many names and phone numbers, what structure for the : phone book : 6. in a stream of words, count the frequency
|
c**a 发帖数: 316 | 4 a.~A();
【在 t*****n 的大作中提到】 : 2:1 byte : 其余期待解答,谢谢!
|
a******8 发帖数: 46 | 5
hash table
【在 t*****n 的大作中提到】 : 1. Can one thread deadlock itself? : 2. what is the size for the object of a class which only has some non- : virtual member function : 3. what is the content in the first four bytes of the object : 4. how to destroy an object before the end of its scope : 5. a phone book has many names and phone numbers, what structure for the : phone book : 6. in a stream of words, count the frequency
|