Interview Question






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

man -S 2 fcntl

- Jasmeet bagga April 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

flock ??

- Messi April 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The lockf() function shall lock sections of a file with advisory-mode locks. Calls to lockf() from other threads which attempt to lock the locked file section shall either return an error value or block until the section becomes unlocked.

- Anonymous April 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

File * const fp = new File("Filename");
Now the fp cant point to something else.
i guess this will do.

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

sorry i read wrongly.. i read it as.. how do u lock a pointer to a file

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

#include <unistd.h>

int lockf(int fildes, int function, off_t size);

- ridercoder October 17, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

fuction discription
F_ULOCK unlock locked sections
F_LOCK lock a section for exclusive use
F_TLOCK test and lock a section for exclusive use
F_TEST test a section for locks by other processes

- karn January 15, 2011 | 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