SlideShare a Scribd company logo
1 of 2
Download to read offline
Buy here:
http://theperfecthomework.com/cmsc-335-homework-3/
1. (10 pts) What events do the following components generate:
JButton
JTextField
JComboBox
2. (10 pts) What methods does JTable implement which are required by the interfaces
implemented by the JTable class beyond those interfaces implemented by the various
parent classes of JTable?
3. (10 pts) Address how the differences among these various layout managers, focusing on
their behavior as their container is resized:
a.FlowLayout
b.GridLayout
c.BorderLayout
d.GridBagLayout
e.Absolute Positioning (explain the basic steps required for this manager as well)
4. (10 pts) (Ex 1.8.2) The dining philosophers problem was invented by E. W. Dijkstra, a
concurrency pioneer, to clarify the notions of deadlock and starvation freedom. Imagine five
philosophers who spend their lives just thinking and feasting. They sit around a circular table
with five chairs. The table has a big plate of rice. However, there are only five chopsticks (in
the original formulation forks) available, as shown in Fig. 1.5. Each philosopher thinks. When
he gets hungry, he sits down and picks up the two chopsticks that are closest to him. If a
philosopher can pick up both chopsticks, he can eat for a while. After a philosopher finishes
eating, he puts down the chopsticks and again starts to think.
5 Dining Philosophers
a. What is wrong with everybody doing the following - other than that the philosophers never
get up from the table?
1.think for a while
2.get left chopstick
3.get right chopstick
4.eat for a while
5.return left chopstick
6.return right chopstick
7.return to 1
b. How can the above be fixed to avoid deadlocks?
c. Is your solution starvation free? Literally!
5. (20 pts) What imports and methods need to be added to the Filter class (Figure 2.7) to
allow the code to compile? What are reasonable implementations requirements of those
methods in this class? (See Herlihy and Shavit Chapter 2)
6. (00 pts) NOTE: The issues with the code in Figure 2.9 are the same ones as those in
Figure 2.7, so this problem is really the same as problem 5. Do that one and ignore this
second one.
+++++++ What imports and methods need to be added to the Bakery class (Figure 2.9) to
allow the code to compile? What are reasonable implementations requirements of those
methods in this class? (See Herlihy and Shavit Chapter 2)
7. (10 pts) In Figure 2.12, the Bounded Timestamp System, what denotations (patterns) are
used in T4? In T4, how are 020 and 120 related? How many threads can be labeled in TN?
(See Herlihy and Shavit Chapter 2)
8. (10 pts) Explain what the JVM does when it encounters a synchronized directive. Hint:
consider carefully what is synchronized.
9. (10 pts) What happens when the JVM encounters a wait () call?
10. (10 pts) Describe the environment in which a wait () call is legal?

More Related Content

Similar to CMSC 335 HOMEWORK 3

Smu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentsSmu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentssmumbahelp
 
SMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSSMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSsolved_assignments
 
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016][Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]Mumbai B.Sc.IT Study
 
Dat 305 dat305 dat 305 education for service uopstudy.com
Dat 305 dat305 dat 305 education for service   uopstudy.comDat 305 dat305 dat 305 education for service   uopstudy.com
Dat 305 dat305 dat 305 education for service uopstudy.comULLPTT
 
Alexandermanalastas reviewer
Alexandermanalastas reviewerAlexandermanalastas reviewer
Alexandermanalastas reviewerSandoy Manalastas
 
Dervy bis 155 week 5 quiz new
Dervy   bis 155 week 5 quiz newDervy   bis 155 week 5 quiz new
Dervy bis 155 week 5 quiz newkxipvscsk02
 
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]Mumbai B.Sc.IT Study
 
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013][Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]Mumbai B.Sc.IT Study
 
Dervy bis-155-week-2-quiz-new
Dervy bis-155-week-2-quiz-newDervy bis-155-week-2-quiz-new
Dervy bis-155-week-2-quiz-newindividual484
 
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015][Question Paper] Advanced Java (75:25 Pattern) [April / 2015]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015]Mumbai B.Sc.IT Study
 
Winter drive assignments sem 2
Winter drive assignments sem 2Winter drive assignments sem 2
Winter drive assignments sem 2solved_assignments
 
Soller my excel reviewer slideshare
Soller my excel reviewer slideshareSoller my excel reviewer slideshare
Soller my excel reviewer slideshareKevin Andrew Soller
 
Alinaaquino my excel reviewer
Alinaaquino my excel reviewerAlinaaquino my excel reviewer
Alinaaquino my excel reviewerNi Aquino
 
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016][Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]Mumbai B.Sc.IT Study
 
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016][Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]Mumbai B.Sc.IT Study
 
Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Mumbai B.Sc.IT Study
 

Similar to CMSC 335 HOMEWORK 3 (20)

Smu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentsSmu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignments
 
SMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSSMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTS
 
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016][Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
[Question Paper] Advanced Java (75:25 Pattern) [November / 2016]
 
Dat 305 dat305 dat 305 education for service uopstudy.com
Dat 305 dat305 dat 305 education for service   uopstudy.comDat 305 dat305 dat 305 education for service   uopstudy.com
Dat 305 dat305 dat 305 education for service uopstudy.com
 
Alexandermanalastas reviewer
Alexandermanalastas reviewerAlexandermanalastas reviewer
Alexandermanalastas reviewer
 
Dervy bis 155 week 5 quiz new
Dervy   bis 155 week 5 quiz newDervy   bis 155 week 5 quiz new
Dervy bis 155 week 5 quiz new
 
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]
Data Warehousing (May – 2016) [75:25 Pattern | Question Paper]
 
Bscit spring driveassignments
Bscit spring driveassignmentsBscit spring driveassignments
Bscit spring driveassignments
 
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013][Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
 
Dervy bis-155-week-2-quiz-new
Dervy bis-155-week-2-quiz-newDervy bis-155-week-2-quiz-new
Dervy bis-155-week-2-quiz-new
 
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015][Question Paper] Advanced Java (75:25 Pattern) [April / 2015]
[Question Paper] Advanced Java (75:25 Pattern) [April / 2015]
 
Winter drive assignments sem 2
Winter drive assignments sem 2Winter drive assignments sem 2
Winter drive assignments sem 2
 
Soller my excel reviewer slideshare
Soller my excel reviewer slideshareSoller my excel reviewer slideshare
Soller my excel reviewer slideshare
 
Alinaaquino my excel reviewer
Alinaaquino my excel reviewerAlinaaquino my excel reviewer
Alinaaquino my excel reviewer
 
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016][Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [November / 2016]
 
7th semester Computer Science and Information Science Engg (2013 December) Qu...
7th semester Computer Science and Information Science Engg (2013 December) Qu...7th semester Computer Science and Information Science Engg (2013 December) Qu...
7th semester Computer Science and Information Science Engg (2013 December) Qu...
 
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016][Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]
[Question Paper] ASP.NET With C# (75:25 Pattern) [April / 2016]
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
 
EXCEL REVIEWER
EXCEL REVIEWEREXCEL REVIEWER
EXCEL REVIEWER
 
Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]
 

More from HamesKellor

CMST 290 FINAL EXAM
CMST 290 FINAL EXAMCMST 290 FINAL EXAM
CMST 290 FINAL EXAMHamesKellor
 
CMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDYCMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDYHamesKellor
 
CMSC 350 PROJECT 3
CMSC 350 PROJECT 3CMSC 350 PROJECT 3
CMSC 350 PROJECT 3HamesKellor
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4 CMSC 350 PROJECT 4
CMSC 350 PROJECT 4 HamesKellor
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4CMSC 350 PROJECT 4
CMSC 350 PROJECT 4HamesKellor
 
CMSC 350 PROJECT 1
CMSC 350 PROJECT 1CMSC 350 PROJECT 1
CMSC 350 PROJECT 1HamesKellor
 
CMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECTCMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECTHamesKellor
 
CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2HamesKellor
 
CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3HamesKellor
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1HamesKellor
 
CMSC 330 PROJECT 1
CMSC 330 PROJECT 1CMSC 330 PROJECT 1
CMSC 330 PROJECT 1HamesKellor
 
CMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTCMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTHamesKellor
 
CMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPERCMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPERHamesKellor
 
CMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSALCMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSALHamesKellor
 
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSALCMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSALHamesKellor
 
CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.HamesKellor
 
CMIT 370 FINAL EXAM
CMIT 370 FINAL EXAMCMIT 370 FINAL EXAM
CMIT 370 FINAL EXAMHamesKellor
 
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMCMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMHamesKellor
 

More from HamesKellor (20)

CMST 290 FINAL EXAM
CMST 290 FINAL EXAMCMST 290 FINAL EXAM
CMST 290 FINAL EXAM
 
CMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDYCMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDY
 
CMSC 350 PROJECT 3
CMSC 350 PROJECT 3CMSC 350 PROJECT 3
CMSC 350 PROJECT 3
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4 CMSC 350 PROJECT 4
CMSC 350 PROJECT 4
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4CMSC 350 PROJECT 4
CMSC 350 PROJECT 4
 
CMSC 350 PROJECT 1
CMSC 350 PROJECT 1CMSC 350 PROJECT 1
CMSC 350 PROJECT 1
 
CMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECTCMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECT
 
CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2
 
CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1
 
CMSC 330 PROJECT 1
CMSC 330 PROJECT 1CMSC 330 PROJECT 1
CMSC 330 PROJECT 1
 
CMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTCMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECT
 
CMSC 330 QUIZ 4
CMSC 330 QUIZ 4CMSC 330 QUIZ 4
CMSC 330 QUIZ 4
 
CMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPERCMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPER
 
CMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSALCMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSAL
 
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSALCMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
 
CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.
 
CMIT 370 FINAL EXAM
CMIT 370 FINAL EXAMCMIT 370 FINAL EXAM
CMIT 370 FINAL EXAM
 
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMCMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
 
CMIT 321 QUIZ 4
CMIT 321 QUIZ 4CMIT 321 QUIZ 4
CMIT 321 QUIZ 4
 

Recently uploaded

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...amitlee9823
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...rajveerescorts2022
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 

Recently uploaded (20)

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 

CMSC 335 HOMEWORK 3

  • 1. Buy here: http://theperfecthomework.com/cmsc-335-homework-3/ 1. (10 pts) What events do the following components generate: JButton JTextField JComboBox 2. (10 pts) What methods does JTable implement which are required by the interfaces implemented by the JTable class beyond those interfaces implemented by the various parent classes of JTable? 3. (10 pts) Address how the differences among these various layout managers, focusing on their behavior as their container is resized: a.FlowLayout b.GridLayout c.BorderLayout d.GridBagLayout e.Absolute Positioning (explain the basic steps required for this manager as well) 4. (10 pts) (Ex 1.8.2) The dining philosophers problem was invented by E. W. Dijkstra, a concurrency pioneer, to clarify the notions of deadlock and starvation freedom. Imagine five philosophers who spend their lives just thinking and feasting. They sit around a circular table with five chairs. The table has a big plate of rice. However, there are only five chopsticks (in the original formulation forks) available, as shown in Fig. 1.5. Each philosopher thinks. When he gets hungry, he sits down and picks up the two chopsticks that are closest to him. If a philosopher can pick up both chopsticks, he can eat for a while. After a philosopher finishes eating, he puts down the chopsticks and again starts to think. 5 Dining Philosophers a. What is wrong with everybody doing the following - other than that the philosophers never get up from the table? 1.think for a while 2.get left chopstick 3.get right chopstick 4.eat for a while 5.return left chopstick 6.return right chopstick 7.return to 1 b. How can the above be fixed to avoid deadlocks? c. Is your solution starvation free? Literally!
  • 2. 5. (20 pts) What imports and methods need to be added to the Filter class (Figure 2.7) to allow the code to compile? What are reasonable implementations requirements of those methods in this class? (See Herlihy and Shavit Chapter 2) 6. (00 pts) NOTE: The issues with the code in Figure 2.9 are the same ones as those in Figure 2.7, so this problem is really the same as problem 5. Do that one and ignore this second one. +++++++ What imports and methods need to be added to the Bakery class (Figure 2.9) to allow the code to compile? What are reasonable implementations requirements of those methods in this class? (See Herlihy and Shavit Chapter 2) 7. (10 pts) In Figure 2.12, the Bounded Timestamp System, what denotations (patterns) are used in T4? In T4, how are 020 and 120 related? How many threads can be labeled in TN? (See Herlihy and Shavit Chapter 2) 8. (10 pts) Explain what the JVM does when it encounters a synchronized directive. Hint: consider carefully what is synchronized. 9. (10 pts) What happens when the JVM encounters a wait () call? 10. (10 pts) Describe the environment in which a wait () call is legal?