Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. What’s wrong with “Race condition” in India?

What’s wrong with “Race condition” in India?

Scheduled Pinned Locked Moved The Lounge
question
58 Posts 33 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nish Nishant

    Ravi Bhavnani wrote:

    Nothing. If a candidate (Indian or otherwise) isn't able to answer the question, I would be inclined to believe they haven't done much multi-threaded programming.

    I wonder if the OP's company is actually looking for a programmer to do some multithreading work. If not, it's a waste of time checking the candidate's abilities in areas he's not going to work on. Not having written multithreaded code does not automatically imply that a developer will be useless to a company. How many people write solid multi-threaded code anyway?

    Regards, Nish


    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
    My latest book : C++/CLI in Action / Amazon.com link

    R Offline
    R Offline
    Ravi Bhavnani
    wrote on last edited by
    #42

    Imho, it's a basic CS question, regardless of whether the candidate's experience includes writing multithreaded code. However, I agree that getting into the down and dirty nitty gritty details of multithreading would be a waste of time if the position they're trying to fill has nothing to do with writing multithreaded code. /ravi

    My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

    1 Reply Last reply
    0
    • I Ilia Blank

      To all developers from India We are interviewing candidates for programming position in Hyderabad India. None of them is able to answer question "What is Race Condition". Can it be that you are using different term in India? Regards

      R Offline
      R Offline
      realJSOP
      wrote on last edited by
      #43

      Nascar has race conditions three times every weekend.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      1 Reply Last reply
      0
      • N Nish Nishant

        Ravi Bhavnani wrote:

        Nothing. If a candidate (Indian or otherwise) isn't able to answer the question, I would be inclined to believe they haven't done much multi-threaded programming.

        I wonder if the OP's company is actually looking for a programmer to do some multithreading work. If not, it's a waste of time checking the candidate's abilities in areas he's not going to work on. Not having written multithreaded code does not automatically imply that a developer will be useless to a company. How many people write solid multi-threaded code anyway?

        Regards, Nish


        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
        My latest book : C++/CLI in Action / Amazon.com link

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #44

        Well, I hope I do, but my skills haven't been seriously tested yet. Most of my MT work has been on single-core systems (generally mobile devices) where there are fewer opportunities to screw up. I'm responsible for a DOS-(style-)emulating library for Windows CE, for porting applications written for DOS-based handhelds, which uses Windows GUI calls to run a window. We would have considered the actual CE console, but Pocket PC devices don't include that library and as far as I know, it's not redistributable. Even if it was available, you don't get control over the menu bars - we don't want the app to be closeable. My first version ran the application code and the UI code on the same thread. Whenever a keypress was requested or a sleep (equivalent), a message pump would be run to process the window's message queue and thereby update the screen. However, this didn't work well with processing-intensive parts of the applications, where you'd have to explicitly slip in a short sleep or direct message pump call to ensure the screen was updated. Also, CE would decide the application wasn't responding (which, of course, it wasn't). So after that had been in the market for a while and stabilised, I moved the UI to a separate thread. That thread creates the window, but Windows' UI processing model requires that keyboard input goes to the active window, so now keyboard input has to move from the UI thread to the application thread. There's some interesting synchronization in there to manage the keyboard buffer. The application thread also writes its text directly into the "screen buffer" structure, then calls InvalidateWindow to tell the window to update itself - I found the overhead of cross-thread window messages too great. There are a few messages used to configure aspects which require full synchronization, for example resizing the screen buffer. In addition the devices have built-in barcode scanners and we have a separate thread which manages that - the manufacturer includes an API which sends scanned data to the window but this was found to be unreliable. Some of our applications respond differently to scanned input compared to the same input entered by hand, so using a keyboard wedge is not appropriate. At some point we have to do something about the single-threaded nature of our application server (the core process is a VB6 standalone EXE, it farms out requests to a pool of worker processes which are themselves single-threaded VB6 ActiveX EXEs). It's just not scaling at present - that is, it's not showing

        1 Reply Last reply
        0
        • I Ilia Blank

          To all developers from India We are interviewing candidates for programming position in Hyderabad India. None of them is able to answer question "What is Race Condition". Can it be that you are using different term in India? Regards

          V Offline
          V Offline
          Vivek Rajan
          wrote on last edited by
          #45

          Most Indian developers are not necessarily computer engineers or who otherwise have exposure to computers beyond chat and orkut. In larger companies, all graduates are put into a 3-6 month training program. They are then placed into existing teams writing business logic code in well controlled frameworks. After some time, these developers latch on to a particular vertical (eg retail) and build their career around implementing more business rules in even more well controlled and abstracted frameworks. Of course, not all jobs are like this - just the overwhelming majority. If you want to ask questions on race conditions, you need to interview students from computer science background and from top universities.

          V 1 Reply Last reply
          0
          • I Ilia Blank

            To all developers from India We are interviewing candidates for programming position in Hyderabad India. None of them is able to answer question "What is Race Condition". Can it be that you are using different term in India? Regards

            H Offline
            H Offline
            hhexo
            wrote on last edited by
            #46

            There is a variety of ways they could have heard the term, even in different contexts. For example, the first thing I thought about when reading your question was "Ah, yes, it's the problem with Verilog". That's because I work on an EDA tool that parses hardware descriptions written in the Verilog language, which is prone to race conditions. Then I thought about multithreading. So I find strange that every candidate hasn't heard it somehow. I believe however that one should not draw the conclusion that "if they haven't heard about this technical term, they don't know what multithreading is". My impression is that software engineering is still a bit chaotic when it comes to naming things. In a text you may find the term "race condition" actually defined, in another one you may find that it is classified as just another problem arising from the pre-emptiveness of the thread system.

            -+ HHexo +-

            1 Reply Last reply
            0
            • N Nish Nishant

              I'd be surprised if a decent candidate hasn't heard of the term. My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker. Although it might sound a little like you are being condescending, perhaps you could have tried spelling the words out. If the candidate is insulted, the good thing is that he's on the other side of the planet from you - so not much awkwardness there I guess. Of course, you might just have been interviewing the wrong candidates. If they are unemployed and are more than a month out of college/school, chances are good that they aren't very smart. in my opinion, the trick to hiring quality people in India is to hire people who already work for reputed companies. As my boss likes to say often, a lot of Indian programmers have "Indian programmer syndrome" and he does not mean that in a nice way either. You gotta find Indians who don't have IPS. They are out there, but they are hard to find.

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              My latest book : C++/CLI in Action / Amazon.com link

              _ Offline
              _ Offline
              _Zorro_
              wrote on last edited by
              #47

              Nishant Sivakumar wrote:

              My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker.

              This is weird, I got to work with a lot of Indians, not in India altough. And they got the worse accents I ever heard. They didn't do any effort to speak better, I just had to do my best effort to try to understand what they where saying, so the least I expect, is the same in the other way. Is it like this in India too? Do they have this terrible accent?

              N 1 Reply Last reply
              0
              • M Marc Clifton

                Actually, to answer your question more seriously, a race condition is much more a hardware term than a software one. More here.[^] The equivalent of a race condition in software is not a deadlock but rather the reading/writing of the same data by two different threads. Locking is an attempt to prevent race conditions, and deadlocks are the result of improper locking. So, unless someone has some hardware experience, I'm not surprised that they wouldn't know the term "race condition". Marc

                Thyme In The Country Interacx My Blog

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #48

                Marc Clifton wrote:

                The equivalent of a race condition in software is not a deadlock but rather the reading/writing of the same data by two different threads. Locking is an attempt to prevent race conditions, and deadlocks are the result of improper locking.

                Yep.

                Marc Clifton wrote:

                So, unless someone has some hardware experience, I'm not surprised that they wouldn't know the term "race condition".

                If sonmeones done any driver work they wil be very familiar with this too.

                Morality is indistinguishable from social proscription

                1 Reply Last reply
                0
                • D darkelv

                  Somebody forgotten to add it to the Standard Interview Question booklet? ;p

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #49

                  Perhaps a suggestion for http://www.questpond.com/[^]

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  1 Reply Last reply
                  0
                  • P peterchen

                    Yes, they say "but it works on m computer" there :rolleyes:

                    We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                    blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #50

                    peterchen wrote:

                    but it works on m computer

                    Truly. I have encountered such people coming for the interviews very many times. Also, they give replies based on their own 'internal framework'.

                    Vasudevan Deepak Kumar Personal Homepage
                    Tech Gossips
                    A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                    C 1 Reply Last reply
                    0
                    • V Vivek Rajan

                      Most Indian developers are not necessarily computer engineers or who otherwise have exposure to computers beyond chat and orkut. In larger companies, all graduates are put into a 3-6 month training program. They are then placed into existing teams writing business logic code in well controlled frameworks. After some time, these developers latch on to a particular vertical (eg retail) and build their career around implementing more business rules in even more well controlled and abstracted frameworks. Of course, not all jobs are like this - just the overwhelming majority. If you want to ask questions on race conditions, you need to interview students from computer science background and from top universities.

                      V Offline
                      V Offline
                      Vasudevan Deepak Kumar
                      wrote on last edited by
                      #51

                      Vivek Rajan wrote:

                      chat and orkut

                      The worst devil on team productivity. There should be a global standard to bring a blanket curb on these. :mad:

                      Vasudevan Deepak Kumar Personal Homepage
                      Tech Gossips
                      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                      1 Reply Last reply
                      0
                      • _ _Zorro_

                        Nishant Sivakumar wrote:

                        My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker.

                        This is weird, I got to work with a lot of Indians, not in India altough. And they got the worse accents I ever heard. They didn't do any effort to speak better, I just had to do my best effort to try to understand what they where saying, so the least I expect, is the same in the other way. Is it like this in India too? Do they have this terrible accent?

                        N Offline
                        N Offline
                        Nish Nishant
                        wrote on last edited by
                        #52

                        _Zorro_ wrote:

                        I got to work with a lot of Indians, not in India altough. And they got the worse accents I ever heard.

                        The word "worse" is relative (not to mention that it's grammatically wrong, I guess you meant "worst"). What you are hearing is presumably a strong regional Indian accent. Unlike most other countries (where English is not the first language), Indians heavily use their own version of English. In fact some dictionaries even have a category called Indian-English, which includes special words and phrases too.

                        _Zorro_ wrote:

                        They didn't do any effort to speak better, I just had to do my best effort to try to understand what they where saying, so the least I expect, is the same in the other way.

                        One reason they cannot "improve" is that in India, you will find that there are very few non-Indian English speakers. India's work-permit policy is very strict, so foreign nationals cannot come and work here. And in any case, westerners won't want to work here, considering a US$ is about 40 rupees. So, unlike in the west, where people have a chance to hear other accents, in India you rarely get the opportunity.

                        _Zorro_ wrote:

                        Is it like this in India too? Do they have this terrible accent?

                        Well yes. Just that we don't know it's terrible. We think that's the way everyone else would speak too :rolleyes: Reminds me of the Chris Tucker joke in a movie where he tells a fellow african-american, "but to the chinese, all of us look alike too".

                        Regards, Nish


                        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                        My latest book : C++/CLI in Action / Amazon.com link

                        _ 1 Reply Last reply
                        0
                        • N Nish Nishant

                          _Zorro_ wrote:

                          I got to work with a lot of Indians, not in India altough. And they got the worse accents I ever heard.

                          The word "worse" is relative (not to mention that it's grammatically wrong, I guess you meant "worst"). What you are hearing is presumably a strong regional Indian accent. Unlike most other countries (where English is not the first language), Indians heavily use their own version of English. In fact some dictionaries even have a category called Indian-English, which includes special words and phrases too.

                          _Zorro_ wrote:

                          They didn't do any effort to speak better, I just had to do my best effort to try to understand what they where saying, so the least I expect, is the same in the other way.

                          One reason they cannot "improve" is that in India, you will find that there are very few non-Indian English speakers. India's work-permit policy is very strict, so foreign nationals cannot come and work here. And in any case, westerners won't want to work here, considering a US$ is about 40 rupees. So, unlike in the west, where people have a chance to hear other accents, in India you rarely get the opportunity.

                          _Zorro_ wrote:

                          Is it like this in India too? Do they have this terrible accent?

                          Well yes. Just that we don't know it's terrible. We think that's the way everyone else would speak too :rolleyes: Reminds me of the Chris Tucker joke in a movie where he tells a fellow african-american, "but to the chinese, all of us look alike too".

                          Regards, Nish


                          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                          My latest book : C++/CLI in Action / Amazon.com link

                          _ Offline
                          _ Offline
                          _Zorro_
                          wrote on last edited by
                          #53

                          I agree with you that it was a big word, I'm sure there are worst accents in the world I never heard. And yes, I did a grammatical error, I speak it quite badly myself so I should just keep it quiet ;P I understand what you are explaining about India. And I didn't knew that the work-permit policies were so strict. Anyway, thanks for lightening this for me, and excuse me for my past and future grammatical errors :doh:

                          1 Reply Last reply
                          0
                          • N Nish Nishant

                            I'd be surprised if a decent candidate hasn't heard of the term. My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker. Although it might sound a little like you are being condescending, perhaps you could have tried spelling the words out. If the candidate is insulted, the good thing is that he's on the other side of the planet from you - so not much awkwardness there I guess. Of course, you might just have been interviewing the wrong candidates. If they are unemployed and are more than a month out of college/school, chances are good that they aren't very smart. in my opinion, the trick to hiring quality people in India is to hire people who already work for reputed companies. As my boss likes to say often, a lot of Indian programmers have "Indian programmer syndrome" and he does not mean that in a nice way either. You gotta find Indians who don't have IPS. They are out there, but they are hard to find.

                            Regards, Nish


                            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                            My latest book : C++/CLI in Action / Amazon.com link

                            E Offline
                            E Offline
                            Elina Blank
                            wrote on last edited by
                            #54

                            Nishant Sivakumar wrote:

                            My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker.

                            Unfortunatelly, that's not the case. The questions are written.

                            Sincerely, Elina Life is great!!! Enjoy every moment of it! :-O

                            N 1 Reply Last reply
                            0
                            • C Colin Angus Mackay

                              I think he means the Blacks Vs. the Whites (Apartheid)

                              Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * The Value of Smaller Methods * Creating Many-to-Many joins My website | blog

                              D Offline
                              D Offline
                              deltalmg
                              wrote on last edited by
                              #55

                              Perhaps race condition has to do with where you are in the caste system?

                              1 Reply Last reply
                              0
                              • V Vasudevan Deepak Kumar

                                peterchen wrote:

                                but it works on m computer

                                Truly. I have encountered such people coming for the interviews very many times. Also, they give replies based on their own 'internal framework'.

                                Vasudevan Deepak Kumar Personal Homepage
                                Tech Gossips
                                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                                C Offline
                                C Offline
                                cpkilekofp
                                wrote on last edited by
                                #56

                                Hmm...a typical example of one case that may match your description happened where I worked in 1992. A programmer came in for an interview; he claimed that, on a scale from 1 to 10, his skill in C earned a 9. Then came the question about "for" loops: he (1) said he always used while loops and had never bothered to learn for loops, (2) he asserted that he would change any for loops he encountered in code to while loops. His 'internal framework' was, hmm, not compatible with ours, so we didn't ask him to come back.

                                1 Reply Last reply
                                0
                                • E Elina Blank

                                  Nishant Sivakumar wrote:

                                  My best guess is that the candidates did not get your accent. Sometimes Indians find it hard to understand a foreign accent, specially if the foreigner himself is not himself or herself a native English speaker.

                                  Unfortunatelly, that's not the case. The questions are written.

                                  Sincerely, Elina Life is great!!! Enjoy every moment of it! :-O

                                  N Offline
                                  N Offline
                                  Nish Nishant
                                  wrote on last edited by
                                  #57

                                  Elina Blank wrote:

                                  Unfortunatelly, that's not the case. The questions are written.

                                  So Ilia is your secret login? :-)

                                  Regards, Nish


                                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                  My latest book : C++/CLI in Action / Amazon.com link

                                  E 1 Reply Last reply
                                  0
                                  • N Nish Nishant

                                    Elina Blank wrote:

                                    Unfortunatelly, that's not the case. The questions are written.

                                    So Ilia is your secret login? :-)

                                    Regards, Nish


                                    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                    My latest book : C++/CLI in Action / Amazon.com link

                                    E Offline
                                    E Offline
                                    Elina Blank
                                    wrote on last edited by
                                    #58

                                    No. It is my husband :). You met.

                                    Sincerely, Elina Life is great!!! Enjoy every moment of it! :-O

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups