NVIDIA Interview Question for Software Engineer / Developers






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

SoftIRQs and tasklets cannot use any blocking instructions as they run in an interrupt context. Workqueues can only be used from a process context. So, I guess if the ISR is long, it can wake up a kernel thread, and let the kernel thread do the dirty work i.e. use blocking instructions.

@Nvidia reject: Thanks for sharing this wealth of questions. What position was this for ?

- Bandicoot March 19, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

To know more on kernel thread scheduling
hxxp://whatilearned2day.wordpress.com/2006/12/08/sleepwakeup-and-linux-kernel-threads/

- AlgoKing!! March 31, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sleep or blocking can not be allowed in ISR(Interrupt context), Tasklets(soft interrupt context)
But allowed in WorkQueues(kernel context).

- mlakshmanarao July 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

bottom handlers - workqueues but not tasklets.

- codedamo August 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Bottom halves (SoftIRQ/tasklet/WorkQueue) are the mechanism to push the work from the interrupt handler. They run at later point of time (with interrupts enabled).
Out of these bottom half mechanism, __only__ workqueue is the mechanism
where sleeping is allowed.
So, in this case the sleeping instruction within the interrupt handler can be pushed to the workqueue BH.
Please note that, it is assumed here, that we are talking about, __non_ *threaded* interrupt handlers !

- Anonymous August 05, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

workqueues/threaded irqs

- Anonymous October 15, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1.request_threaded_irq- > this is newest method and would eventually replace tasklet
2.Tasklet
3.Softirq( not use as they are stattically compiled with kernel)
4.Workqueue
5.kthread

- Anonymous February 12, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

SoftIRQs: can execute in an atomic context
Tasklets: can execute in an atomic context

- fadilmohd007@gmail.com May 02, 2021 | Flag Reply


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