NVIDIA Interview Question for Software Engineer / Developers






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

no,
it will not visible to other thread...

each thread has own stack area. and heap area also.

so only if you re initlize globle variable with in one thread it will visible to other thread...

- Gaurav Kumar Garg December 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Write an aligned malloc & free function. Which takes number of bytes and aligned byte (which is always power of 2)

Ex. align_malloc (1000,128);

it will return memory address multiple of 128 of the size 1000.

aligned_free();

it will free memory allocated by align_malloc.

- Sourav May 15, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

yes.
Typical server programs have a global queue of request objects in the main function, create 2 threads one to push to it, another to use from it.

- lord Darth Plagueis August 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Each thread has a private stack All threads share a common heap.

Dynamic memory allocated from heap.

SO yes it will be visible to others

- tksrules March 19, 2013 | 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