Top 20+ C# Windows Service Interview Questions and Answers - 1

Question: 1

Explain Windows service?

You often need programs that run continuously in the background. For example, an email server is expected to listen continuously on a network port for incoming email messages, a print spooler is expected to listen continuously to print requests, and so on.

Question: 2

What is the Unix name for a Windows service equivalent?

Daemon

Question: 3

How do you give Windows service specific permissions?

Windows service always runs under someone’s identity. Can be System or Administrator account, but if you want to restrict the behavior of a Windows service, the best bet is to create a new user account, assign and deny necessary privileges to that account, and then associate the Windows service with that new account.

Question: 4

Can you share processes between Windows services?

Yes.

Question: 5

How is development of a Windows service different from a Windows Forms application?

A Windows service typically does not have a user interface, it supports a set of commands and can have a GUI that’s built later to allow for easier access to those commands.

Error Report!

Related Questions