Manhattan associates Interview Question for Developer Program Engineers


Country: India
Interview Type: In-Person




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

critical section is a piece of code that accesses a shared resource (data structure or device) that must not be concurrently accessed by more than one thread of execution. A critical section will usually terminate in fixed time, and a thread, task or process will have to wait a fixed time to enter it (aka bounded waiting). Some synchronization mechanism is required at the entry and exit of the critical section to ensure exclusive use, for example a semaphore.

- Sam March 02, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

critical section can be called as segment code which can be used in updating of tables ,writing of files and so on. it contains 3 section
i)entry section
ii)exit section
iii)remainder section

do{
entry section
critical section
exit section
remainder section
}while(1)

- rockstar December 23, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Critical section is the area of the code/instruction that should be executed atomically. Like writing to a shared port, shared file or a shared memory. Some languages provide a buildin features to overcome from it like semaphore and mutex class in java.


The easy way is to locking the shared resources by threads/processes:

eg:

acquireLock()
critical Section
releaselock()

- Deepak Singh January 29, 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