Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ General Discussion _ End of the semester

Posted by: Jim Dec 21 2005, 01:08 AM

I don't know about you guys, but its finals time for me up here and I was just wondering if its the same for any of you guys. Thought I would share a few of my questions from some of my finals.

CSci4061- Operating Systems
We were given a code segment that created x number of threads, then each thread accessed an array x long at the index relating to the order it was created. It would then fill that index with the number before it + 1. We had to write more filler code in C that would use semaphores to ensure that no two threads accessed the array at the same time, and use some other method to ensure linearity.

Discuss why the TCP/IP includes the UDP protocol even though it is unreliable and may deliver packets out of order.

CSci3081- Design and Development
Write a template function in C++ that takes an array of some data type and returned the data element that occurred the most times.

We were given a class definition and we had to draw a UML diagram for it, and write an overloaded == operator for the class.

I am not looking for answers as I have already taken the test, I am just not studying for my Stats test tomorrow.

Posted by: Corey Dec 21 2005, 11:23 AM

I would guess that we still use UDP dispite it's reliability because it has a hell of a lot less overhead due to lack of error checking, etc. The benefit of this would be that some data transmissions over a network, do not require 100% accuracy of the packets such as streaming music/video or even gaming. The less overhead allows for faster transmission, where one computer basically just pushes the packets out the door as fast as possible without worrying about wether it reaches its target or not. With gaming and streaming audio/video, you can drop a few packets here and there and not notice anything. however, with things like email, webpages, or a download of a file, a dropped packet means that the transmission would most likely have to start all over again because it would not be able to re-assemble on the other end.

That's as far as i understand it smile.gif

Posted by: DS2K3 Dec 21 2005, 01:23 PM

I have module exams in January, but only in 3 of my subjects. Main exams are in June. Revision spoils Christmas sad.gif

D

Posted by: Jim Dec 21 2005, 06:36 PM

That was exactly my answer Corey, in a few less words. Right on. You get an A.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)