Software Developer
Software engineeringPosted over 2 months agofrom Netscout Systems's own hiring page
- Work type
- On-sitePune
- Experience
- Not stated
- Pay
- Not listedUsually ₹8.2 LPASoftware engineering, median, all levels, in India (Payscale)
- Posted
- Over 2 months agoOpen 2 months
Skills it mentions
Add your skills to see which ones you have.
About the job
At NETSCOUT, we are an elite force of trailblazers, innovators, and problem solvers. We protect the connected world from cyberattacks and performance and availability disruptions through our unique visibility platform and solutions powered by pioneering deep packet inspection at scale technology. We are Guardians of the Connected World. We are looking for exceptional talent to join our team.
About NETSCOUT
NETSCOUT has been helping the world’s largest organizations solve their most complex digital challenges for more than 40 years.
NETSCOUT unlocks insight at unequaled scale, from every data packet to the broadest view of global internet traffic, so the world’s essential organizations can solve problems faster, constantly transform their digital ecosystems, secure what matters – and stay unstoppable for a world that relies on them every second.
About the Team/About the Role:
NETSCOUT Systems, Inc. builds products for application & network troubleshooting & monitoring in Unified Communications, Wireless, 4G/LTE, Big Data, Virtualization, IoT, Cloud, Cyber Security domain. Our global customers’ base includes all top enterprises, service providers, federal agencies, banks etc., that are spread across the US, Europe & the rest of the world.
We're looking for passionate and bright C/C++ developer to join our Engineering team! If you are looking for a role on design, development and all technical-related aspects, you will love this position.
Responsibilities:
- Design, build and maintain efficient, reusable and reliable code
- Implement optimized and high-quality modules
- Identify process bottlenecks and bugs
- Suggest and implement solutions to problems
- Implementation by modular programming in C/C+
- Support our team in maintaining the code quality
- Analysis, design and implementation
- Unit Testing
Basic Qualifications/Skills:
- Excellent knowledge in C/C++ programming language & development
- Excellent problem solving & analytical skills
- Good understanding of data structures and algorithms
- Familiar with Object Oriented Coding and Design Patterns
- Experience with IPC, Socket programming, and Multithreading (including race conditions, and deadlocks)
- Excellent teamwork
- People with very good communication skills and attitudes MUST
- BE/BTech/ME/MTech/MCA/MCS/MSC
- Reputed educational institutes.
Preferred Qualifications/Skills:
- Additional relevant experience in C/C++ programming and development
- Experience with IPC, Socket programming, and Multithreading
- Experience with Object Oriented Coding and Design Patterns
- Experience in analysis, design and implementation
Working at NETSCOUT
At NETSCOUT, our vision is to create a workplace where every individual feels valued, respected, and empowered to contribute their unique perspectives. We strive to build a diverse workforce that reflects the communities we serve. We also know that life at NETSCOUT is not just about what you will contribute, but what we will give back to you. Besides the promise of interesting work in an exciting and ever-growing industry, NETSCOUT is committed to giving you opportunities to continue to learn and grow. Employees are eligible for a variety of professional development opportunities to help them advance their skills and career. We have heavily invested in our individual, management, and leadership training and development programs.
We value genuine candidate experiences. The use of AI-generated responses or other external assistance during any stage of the interview process is not allowed. NETSCOUT recognizes its obligations to provide reasonable accommodations to candidates with disabilities. Candidates who require third‑party assistance or other accommodations to participate in the interview process should notify the recruiting team in advance so appropriate arrangements can be made.
Interested?Software Developer at Netscout Systems
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on C and C++
Interview questions for this job
For the skills the ad mentions: C and C++.
Why does the C preprocessor interpret the word "linux" as the constant "1"?C
In the Old Days (pre-ANSI), predefining symbols such as
unixandvaxwas a way to allow code to detect at compile time what system it was being compiled for. There was no official language standard back then (beyond the reference material at the back of the first edition of K&R, 1978), and C code of any complexity was typically a complex maze of#ifdefs to allow for differences between systems. These macro definitions were generally set by the compiler itself, not defined in a library header file. Since there were no real rules about which identifiers could be used by the implementation and which were reserved for programmers, compiler writers felt free to use simple names likeunixand assumed that programmers would simply avoid using those names for their own purposes.The 1989 ANSI C standard introduced rules restricting what symbols an implementation could legally predefine. A macro predefined by the compiler could only have a name starting with two underscores, or with an underscore followed by an uppercase letter, leaving programmers free to use identifiers not matching that pattern and not used in the standard library.
As a result, any compiler that predefines
unixorlinuxis non-conforming, since it will fail to compile perfectly legal code that uses something likeint linux = 5;.As it happens, gcc is non-conforming by default -- but it can be made to conform (reasonably well) with the right command-line options:
gcc -std=c90 -pedantic ... # or -std=c89 or -ansi gcc -std=c99 -pedantic gcc -std=c11 -pedanticBy the time you read this, gcc will support newer editions of the C standard. See the gcc manual for more details.
gcc might phase out these definitions (
unix,linux, et al) in future releases, so you shouldn't write code that depends on them. If your program needs to know whether it's being compiled for a Linux target or not it can check whether__linux__is defined (assuming you're using gcc or a compiler that's compatible with it). See the GNU C preprocessor manual for more information.A largely irrelevant aside: the "Best One Liner" winner of the 1987 International Obfuscated C Code Contest, by David Korn (yes, the author of the Korn Shell) took advantage of the predefined
unixmacro:main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}It prints
"unix", but for reasons that have absolutely nothing to do with the spelling of the macro name.I don't want to post any spoilers here, and I encourage anyone reading this to try to understand that code on their own first. But if you really want to give up, I've posted an explanation here: https://gist.github.com/Keith-S-Thompson/6920347
From Stack Overflow: asked by ahmedaly50, answered by Keith Thompson (CC BY-SA 4.0)
What are the basic rules and idioms for operator overloading?C++
Common Operators to Overload
Most of the work in overloading operators is boilerplate code. That is little wonder, since operators are merely syntactic sugar. Their actual work could be done by (and often is forwarded to) plain functions. But it is important that you get this boilerplate code right. If you fail, either your operator’s code won’t compile, your users’ code won’t compile, or your users’ code will behave surprisingly.
Assignment Operator
There's a lot to be said about assignment. However, most of it has already been said in GMan's famous Copy-And-Swap FAQ, so I'll skip most of it here, only listing the perfect assignment operator for reference:
X& X::operator=(X rhs) { swap(rhs); return *this; }Stream Insertion and Extraction
Disclaimer For overloading <<and>>as bitwise shift operators, skip to the section Binary Arithmetic Operators.The bitwise shift operators
<<and>>, although still used in hardware interfacing for the bit-manipulation functions they inherit from C, have become more prevalent as overloaded stream input and output operators in most applications.The stream operators, among the most commonly overloaded operators, are binary infix operators for which the syntax does not specify any restriction on whether they should be members or non-members. However, their left operands are streams from the standard library, and you cannot add member functions to those1, so you need to implement these operators for your own types as non-member functions2. The canonical forms of the two are these:
std::ostream& operator<<(std::ostream& os, const T& obj) { // Write obj to stream return os; } std::istream& operator>>(std::istream& is, T& obj) { // Read obj from stream if( /* no valid object of T found in stream */ ) is.setstate(std::ios::failbit); return is; }When implementing
operator>>, manually setting the stream’s state is only necessary when the reading itself succeeded, but the result is not what would be expected.1 Note that some of the
<<overloads of the standard library are implemented as member functions, and some as free functions. Only the locale-dependent functions are member functions, such asoperator<<(long).2 According to the rules of thumb, the insertion/extraction operators should be member functions because they modify the left operand. However, we cannot follow the rules of thumb here.
Function Call Operator
The function call operator, used to create function objects, also known as functors, must be defined as a member function, so it always has the implicit
thisargument of member functions. Other than this, it can be overloaded to take any number of additional arguments, including zero.Here's an example of the syntax:
struct X { // Overloaded call operator int operator()(const std::string& y) { return /* ... */; } };Usage:
X f; int a = f("hello");Throughout the C++ standard library, function objects are always copied. Your own function objects should therefore be cheap to copy. If a function object absolutely needs to use data which is expensive to copy, it is better to store that data elsewhere and have the function object refer to it.
Comparison Operators
Read the rest at the sourceFrom Stack Overflow: asked by sbi, answered by sbi (CC BY-SA 4.0)
Difference between malloc and calloc?C
calloc()gives you a zero-initialized buffer, whilemalloc()leaves the memory uninitialized.For large allocations, most
callocimplementations under mainstream OSes will get known-zeroed pages from the OS (e.g. via POSIXmmap(MAP_ANONYMOUS)or WindowsVirtualAlloc) so it doesn't need to write them in user-space. This is how normalmallocgets more pages from the OS as well;callocjust takes advantage of the OS's guarantee.This means
callocmemory can still be "clean" and lazily-allocated, and copy-on-write mapped to a system-wide shared physical page of zeros. (Assuming a system with virtual memory.) The effects are visible with performance experiments on Linux, for example.Some compilers even can optimize malloc + memset(0) into calloc for you, but it's best to just use calloc in the source if you want zeroed memory. (Or if you were trying to pre-fault it to avoid page faults later, that optimization will defeat your attempt.)
If you aren't going to ever read memory before writing it, use
mallocso it can (potentially) give you dirty memory from its internal free list instead of getting new pages from the OS. (Or instead of zeroing a block of memory on the free list for a small allocation).Embedded implementations of
callocmay leave it up tocallocitself to zero memory if there's no OS, or it's not a fancy multi-user OS that zeros pages to stop information leaks between processes.On embedded Linux, malloc could
mmap(MAP_UNINITIALIZED|MAP_ANONYMOUS), which is only enabled for some embedded kernels because it's insecure on a multi-user system.From Stack Overflow: asked by user105033, answered by Fred Larson (CC BY-SA 4.0)
Why are elementwise additions much faster in separate loops than in a combined loop?C++
Upon further analysis of this, I believe this is (at least partially) caused by the data alignment of the four-pointers. This will cause some level of cache bank/way conflicts.
If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line.
This means that all your accesses in each loop will fall on the same cache way. However, Intel processors have had 8-way L1 cache associativity for a while. But in reality, the performance isn't completely uniform. Accessing 4-ways is still slower than say 2-ways.
EDIT: It does in fact look like you are allocating all the arrays separately. Usually when such large allocations are requested, the allocator will request fresh pages from the OS. Therefore, there is a high chance that large allocations will appear at the same offset from a page-boundary.
Here's the test code:
int main(){ const int n = 100000; #ifdef ALLOCATE_SEPERATE double *a1 = (double*)malloc(n * sizeof(double)); double *b1 = (double*)malloc(n * sizeof(double)); double *c1 = (double*)malloc(n * sizeof(double)); double *d1 = (double*)malloc(n * sizeof(double)); #else double *a1 = (double*)malloc(n * sizeof(double) * 4); double *b1 = a1 + n; double *c1 = b1 + n; double *d1 = c1 + n; #endif // Zero the data to prevent any chance of denormals. memset(a1,0,n * sizeof(double)); memset(b1,0,n * sizeof(double)); memset(c1,0,n * sizeof(double)); memset(d1,0,n * sizeof(double)); // Print the addresses cout << a1 << endl; cout << b1 << endl; cout << c1 << endl; cout << d1 << endl; clock_t start = clock(); int c = 0; while (c++ < 10000){ #if ONE_LOOP for(int j=0;j<n;j++){ a1[j] += b1[j]; c1[j] += d1[j]; } #else for(int j=0;j<n;j++){ a1[j] += b1[j]; } for(int j=0;j<n;j++){ c1[j] += d1[j]; } #endif } clock_t end = clock(); cout << "seconds = " << (double)(end - start) / CLOCKS_PER_SEC << endl; system("pause"); return 0; }Benchmark Results:
EDIT: Results on an actual Core 2 architecture machine:
2 x Intel Xeon X5482 Harpertown @ 3.2 GHz:
#define ALLOCATE_SEPERATE #define ONE_LOOP 00600020 006D0020 007A0020 00870020 seconds = 6.206 #define ALLOCATE_SEPERATE //#define ONE_LOOP 005E0020 006B0020 00780020 00850020 seconds = 2.116 //#define ALLOCATE_SEPERATE #define ONE_LOOP 00570020 00633520 006F6A20 007B9F20 seconds = 1.894 //#define ALLOCATE_SEPERATE //#define ONE_LOOP 008C0020 00983520 00A46A20 00B09F20 seconds = 1.993Observations:
6.206 seconds with one loop and 2.116 seconds with two loops. This reproduces the OP's results exactly.
In the first two tests, the arrays are allocated separately. You'll notice that they all have the same alignment relative to the page.
In the second two tests, the arrays are packed together to break that alignment. Here you'll notice both loops are faster. Furthermore, the second (double) loop is now the slower one as you would normally expect.
As @Stephen Cannon points out in the comments, there is a very likely possibility that this alignment causes false aliasing in the load/store units or the cache. I Googled around for this and found that Intel actually has a hardware counter for partial address aliasing stalls:
5 Regions - Explanations
Region 1:
This one is easy. The dataset is so small that the performance is dominated by overhead like looping and branching.
Region 2:
Read the rest at the sourceFrom Stack Overflow: asked by Johannes Gerer, answered by Mysticial (CC BY-SA 4.0)
What is ':-!!' in C?C
This is, in effect, a way to check whether the expression e can be evaluated to be 0, and if not, to fail the build.
The macro is somewhat misnamed; it should be something more like
BUILD_BUG_OR_ZERO, rather than...ON_ZERO. (There have been occasional discussions about whether this is a confusing name.)You should read the expression like this:
sizeof(struct { int: -!!(e); }))(e): Compute expressione.!!(e): Logically negate twice:0ife == 0; otherwise1.-!!(e): Numerically negate the expression from step 2:0if it was0; otherwise-1.struct{int: -!!(0);} --> struct{int: 0;}: If it was zero, then we declare a struct with an anonymous integer bitfield that has width zero. Everything is fine and we proceed as normal.struct{int: -!!(1);} --> struct{int: -1;}: On the other hand, if it isn't zero, then it will be some negative number. Declaring any bitfield with negative width is a compilation error.
So we'll either wind up with a bitfield that has width 0 in a struct, which is fine, or a bitfield with negative width, which is a compilation error. Then we take
sizeofthat field, so we get asize_twith the appropriate width (which will be zero in the case whereeis zero).Some people have asked: Why not just use an
assert?keithmo's answer here has a good response:
These macros implement a compile-time test, while assert() is a run-time test.
Exactly right. You don't want to detect problems in your kernel at runtime that could have been caught earlier! It's a critical piece of the operating system. To whatever extent problems can be detected at compile time, so much the better.
From Stack Overflow: asked by chmurli, answered by John Feminella (CC BY-SA 3.0)
What are your main strengths?Behavioural
The strengths employers look for will depend on the job role. They may ask you questions like:
- what are your main strengths?
- why should we hire you?
You can use specific examples to highlight your strengths, such as:
- communication - to show you get on with others
- problem solving - to show that you can find solutions
- enthusiasm - to show that you have a positive attitude to work
- flexibility - to show that you can adapt to different ways of working
Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Calibration Engineer - Diagnosis & OBDBosch Group, Pune, on-siteYesterday
- Technical LeadXoriant, Pune, hybridYesterday
- Data Ingestion Engineer (ADF+Dbt+Snowflake)EVERSANA, Pune, on-siteYesterday
- Crew Optimization Developer - AhmedabadAir Arabia, Pune, on-site2 days ago
More like this: Software engineer jobs in Pune (352), Jobs in Pune (3,219) and Software engineer jobs in India (2,828)



