Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

What is multithreaded programming?

(a) It’s a process in which two different processes run simultaneously

(b) It’s a process in which two or more parts of same process run simultaneously

(c) It’s a process in which many different process are able to access same information

(d) It’s a process in which a single process can access information from many sources

I have been asked this question in an online quiz.

My question is based upon Multithreaded Programming in section Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • October 2, 2023 at 5:06 am

Which of these statements is incorrect?

(a) By multithreading CPU idle time is minimized, and we can take maximum use of it

(b) By multitasking CPU idle time is minimized, and we can take maximum use of it

(c) Two thread in Csharp can have same priority

(d) A thread can exist only in two states, running and blocked

I had been asked this question in my homework.

The query is from Multithreaded Programming in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 3, 2023 at 5:06 am

Which method is used to abort thread prior to it’s normal execution?

(a) sleep()

(b) terminate()

(c) suspend()

(d) Abort()

The question was posed to me by my school teacher while I was bunking the class.

This interesting question is from Multithreaded Programming in section Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 28, 2023 at 5:06 am

What is Semaphore?

(a) Grant more than one thread access to a shared resource at the same time

(b) Useful when a collection of resources is being synchronized

(c) Make use of a counter to control access to a shared resource

(d) All of the mentioned

I had been asked this question in an international level competition.

Question is taken from Multithreaded Programming topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • August 22, 2023 at 5:06 am

What is mutex?

(a) a mutually exclusive synchronization object

(b) can be acquired by more than one thread at a time

(c) helps in sharing of resource which can be used by one thread

(d) all of the mentioned

The question was posed to me in examination.

My question comes from Multithreaded Programming topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 10, 2023 at 5:06 am

What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?

(a) System I/O Exception

(b) DivideByZero Exception

(c) SynchronizationLockException

(d) All of the mentioned

This question was addressed to me in an interview for internship.

Query is from Multithreaded Programming topic in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • October 24, 2023 at 5:06 am

Which method is called when a thread is blocked from running temporarily?

(a) Pulse()

(b) PulseAll()

(c) Wait()

(d) Both Pulse() & Wait()

This question was addressed to me in exam.

Enquiry is from Multithreaded Programming in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • October 2, 2023 at 5:06 am

What is synchronization in reference to a thread?

(a) It’s a process of handling situations when two or more threads need access to a shared resource

(b) It’s a process by which many threads are able to access the same shared resource simultaneously

(c) It’s a process by which a method is able to access many different threads simultaneously

(d) It’s a method that allows too many threads to access any information they require

The question was posed to me in unit test.

Query is from Multithreaded Programming in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 9, 2023 at 5:06 am

Which keyword is used for using the synchronization features defined by the Monitor class?

(a) lock

(b) synchronized

(c) monitor

(d) locked

The question was asked during an online exam.

My question is taken from Multithreaded Programming topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • November 8, 2023 at 5:06 am

Which of these keywords are used to implement synchronization?

(a) synchronize

(b) syn

(c) synch

(d) synchronized

I got this question in homework.

My query is from Multithreaded Programming topic in section Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

  • C#
  • September 27, 2023 at 5:06 am

Viewing 15 topics - 1 through 15 (of 257 total)

1 2 3 16 17 18
  • You must be logged in to create new topics.