Samsung Interview Question for Software Engineer / Developers

Team: networking
Country: India
Interview Type: In-Person

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

in modern processors a memory access can go through multiple levels of caches and main memory. Depending on where the accessed data is, the latency of the access can go from a few cycles to hundred or thousands of them. When possible, a programmer should be careful to access memory with high locality. For example, If an image is stored in contiguous memory, with consecutive pixels in a raw occupying consecutive words in memory, a filter scanning the image should have the inner loop on columns and the outer on rows.

Not all multi-core architectures guarantee cache coherency across cores. In such cases, the developer has to make sure data accessed by more than one core is properly made coherent in caches.

Excessive use of memory/page trashing: An application using an eccessive amount of memory can either run out or, in systems with virtual memory, cause trashing of loaded pages, causing excessive page swapping.

- acoder September 17, 2014 | Flag Reply

Add a Comment

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


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


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