zoukankan      html  css  js  c++  java
  • MassMutual Interview Questions

    Company MassMutual
    Date 30/09/15
    Location Boston, MA
    Position Application Developer

    It's not a coding interview. The interviewer only asked me questions about my resume and some techniques.

    There are two points to note here.

    1. What are wait() and notify() in Java?

    These two methods are used in multi-thread programming.

    wait()

    Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.

    This method should only be called by a thread that is the owner of this object's monitor. After calling this method, the thread releases ownership of this monitor and waits until another thread notifies threads waiting on this object's monitor to wake up either through a call to the notifymethod or the notifyAll method.

    Typical usage:

    synchronized (obj) {
             while (<condition does not hold>)
                 obj.wait();
             ... // Perform action appropriate to condition
    }

    notify()

    Wakes up a single thread that is waiting on this object's monitor. If any threads are waiting on this object, one of them is chosen to be awakened.

    The awakened thread will not be able to proceed until the current thread relinquishes the lock on this object. 

    notifyAll()

    Wakes up all threads that are waiting on this object's monitor. 

    (More on ProgramCreek)

    2. What is Hadoop in your word?

    The Apache Hadoop project develops open-source software for reliable, scalable, distributed computing.

    The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models.

    The project includes:

    • Hadoop Common: The common utilities that support the other Hadoop modules.
    • Hadoop Distributed File System (HDFS™): A distributed file system that provides high throughput access to application data.
    • Hadoop YARN: A framework for job scheduling and cluster resource management.
    • Hadoop MapReduce: A YARN-based system for parallel processing of large data sets.

    Previous structure:

    Current structure:

  • 相关阅读:
    判断一个对象是否为空
    viewflipper的高度设置
    Android利用ViewFlipper实现屏幕切换动画效果
    锁屏状态下点亮屏幕,并弹出闹钟提示信息
    android如何取消闹铃
    luogu P1880(区间dp)
    luogu P2014 选课(树形dp)
    luogu P1122(树形dp)
    luogu P1352 (树形dp)
    luogu P1541 (dp)
  • 原文地址:https://www.cnblogs.com/ireneyanglan/p/4850621.html
Copyright © 2011-2022 走看看