• 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:

  • 相关阅读:
    常见存储过程分页PK赛——简单测试分析常见存储过程分页速度
    简单的ASP.NET无刷新分页
    程序员45个好习惯
    手机应用兼职开发平台,欢迎有识之士参加...
    DotNetRemoting分布式安全部署(整理+原创)
    刚刚整理的截获SQL错误代码弹出提示信息类.
    485modbus通讯协议
    485通信
    ucoss在stm32上的移植
    使用OFFICE组件出问题环境配置
  • 原文地址:https://www.cnblogs.com/ireneyanglan/p/4850621.html
Copyright © 2020-2023  润新知