{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

20a - = Professional Apti Ide Council Online Assessement...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: = Professional Apti Ide Council: Online Assessement - Mozilla Firefox file Edit mew Higtory gookmarks Iaols Help {1* é - I? - a (fig fl . http:froracleindia.proaptitude.comfcummanjonlineexamftest‘php v H G' Digital finger print technology Q] finelease Notes EiFedora Project EH-‘ted Hat EJFree Content 3 Gmail: Email from gfimai - max --hersha_.nit - fl 0 Professional Aptitude fi items = array of size maxsize front = 0 back = 0 q.add(iteml: back = back + 1 if back == maxsize then back = 0 items [back] 2 item q.remove() item 2 items [front] front 2 front + 1 if front == maxsize then front = 0 return item q is a queue with the above implementation Input thread: while not end of file read word while q is full sleep lflms q.add(word} Output thread: (ignoring how it knows to stop) while (1) while q is empty sleep lOms word = q.remove(l if word is not in dictionary then print word Q Assuming no other thread uses :1 (but that there might be other threads in the program), what problems could occur if the input :‘K A a U I ' . Professional Aptitude ‘Untitledl- Openoffice. - fiOmcle [Elguestfiinsllofiw - Shell . 1am um Wednesday 06125108 firm ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern