Qualcomm Interview Question


Country: India
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
7
of 7 vote

Linux Kernel is a passive component of the OS. It does not execute, neither it is a process/thread. It itself has many subsystem and could be called with system cal API/Interrupt that helps in executing the user space process in system space for more privileged access, either to I/O or any subsystem.

- Ruinderjit Singh December 02, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

A kernel is the lowest level of easily replaceable software that interfaces with the hardware in your computer. It is responsible for interfacing all of your applications that are running in “user mode” down to the physical hardware, and allowing processes, known as servers, to get information from each other using inter-process communication (IPC).

- jainrajrahul December 09, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

This is not fully true incase of micro-kernels and also the Linux kernel which has "worker threads" and "workqueues".

- Brave Heart March 12, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

going by the definition of process and thread, the kernel itself doesn't qualify to be one, processes are associated with task_struct and have virtual memories of its own, kernel has many subsystem which remains dormant and run at the behest of user space process, the entire kernel maps itself in the kernel part of the VM, then there are many kernel threads which are associated with a task_struct and can be scheduled, and there are handlers which are not running in process context and they do not have a task_struct of itself. Therefor a 1 line answer is not possible.

- Surajit Sinha May 03, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 8 vote

Kernel is a single process executing in a single address space.

- Srikanth December 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

That is not a correct answer. Read up on concepts of kernel threads and micro kernels. Further a good portion of the kernel executes on behalf of a process during system calls and is not even a "thread".

- Brave Heart March 12, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

This is the correct answer, linux kernel is a single process executing on a single address space. It is not a micro kernel, its a monolithic kernel.

- Anoop April 16, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

it is correct, linux kernel is a single process and a monolithic kernel, but with moduled approach, also the kernel process itself can get preempted

- ritesh ghosh May 17, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Even though Linux is monolithic, it is not considered a process. Brave Heart was right. The first process (and the mother of all processes) is init, which is called by the end of kernel execution. After that, it is idle (not really idle actually as its scheduler executes normal processes in round lobin), waiting for anti system call to be called or interrupts to be serviced.

All processes must have a PID (process Id), while the kernel doesn't.

- Buhadram September 11, 2014 | Flag
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 votes

dumb answer..

- Anonymous February 23, 2013 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More