I was asked 2,3 questions in an interview which didn’t make any sense.
-
Difference between deadlock and thread ( i couldnt compare them )
-
Difference between struct and association ( not comparable again)
Are these even valid questions? If yes what would be the answer.
well, these are unusual questions, but one could answer:
or shorter: a deadlock is a situation that thread could be in. That’s not really a difference…
I think if you can describe thread and deadlock that would be fine. It could be an intentionally misleading question so you must really sure what you know to tell the interviewer that there is no really difference, because one can’t compare the tow things.
The same goes for struct and association.