面试问题关于套接字编程和多线程 [英] Interview Questions on Socket Programming and Multi-Threading

查看:296
本文介绍了面试问题关于套接字编程和多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请任何人都能告诉我问题,可以在面试中询问以下主题

Please anybody can tell me the questions, that can be asked in an interview for below topics


  • 套接字编程

  • 多线程

预先感谢所有提供时间的人

An advance thanks goes to everybody who provide their time

推荐答案

作为招聘经理,我最喜欢的网络问题是:

As a hiring manager, my favorite networking question to ask was this:


想象一个用户坐在
以太网连接的PC。他有一个浏览器
打开。他在地址栏中输入www.google.com
,然后输入。

Imagine a user sitting at an Ethernet-connected PC. He has a browser open. He types "www.google.com" in the address bar and hits enter.

现在告诉我第一个发送到
的数据包以太网。

Now tell me what the first packet to appear on the Ethernet is.

可能的答案(不同的正确性)包括:

Possible answers (of varying correctness) include:


  • 我不知道。

  • HTTP请求
    数据包。

  • TCP syn数据包。

  • 一个DNS
    请求数据包。

  • 一个ARP封包。

  • 这取决于。

  • I don't know.
  • An HTTP request packet.
  • A TCP syn packet.
  • A DNS request packet.
  • An ARP packet.
  • It depends.

每个答案都揭示了人们对网络的理解,特别是IP和TCP。随后的讨论可以揭示关于他们的理解的卷。 (当然,假设提问者在这方面有一些专业知识)。

Each of the answers reveals something about the person's understanding of networking in general, and IP and TCP in particular. The subsequent discussion can reveal volumes about their understanding. (Assuming, of course, that the questioner has some expertise in this area).

这篇关于面试问题关于套接字编程和多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆