C#, .net questions, if false provide a reason why Question 15 2 pts The _____ ke
ID: 3711224 • Letter: C
Question
C#, .net questions, if false provide a reason why
Question 15 2 pts
The _____ keyword allows a method in a superclass to behave polymorphic-ly
Question 16 2 pts
When working with threads, it is best practice to use a ________ to manage the threads
to ensure you don't have too many threads running
Question 17 2 pts
__________ programming allows a program to continue executing other code while a
separate thread completes a task.
Question 18 2 pts
The _____ keyword allows you to define a method that can be called asynchronously
Question 19 2 pts
To prevent multiple threads from updating a single value with stale values, you can use
the ________ keyword to prevent more than a single thread from running in a block of
code at a time.
Question 20 2 pts
When two treads have each other blocked waiting on each other to finish, it is referred to
as a ________
Explanation / Answer
Answer)
1) Over ride is a keyword to be used . But a derived class can over ride the base class only if the base class member is derived as virtual or abstract.
2) The use of thread.abort will terminate the other threads that are running but this is not a good practice.
One can use AutoResetEvent which in turn will notify a waiting thread about the finish of an event. It releases one thread at a time.
3) A multi threading programming will allow the other tasks to be performed when one thread is being executed.
4) The use of "async" will allow the method to be called asynchronously.
5) Synchronization is the process.
6) Deadlock is the situation for the mentioned scenario.
Hope this answer helps. :) Happy to help.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.