今天没有新动态
@kidultff

字节、字、位、bit、byte、B之间的关系

位:bit,b,就是二进制位,例如11010有5位。字节:byte,B,内存单位,可以使用byte表示,也可以使用B来表示,1byte=8bits,1B=8b字:位数和计算机型号有关,例如字长32的芯片,一个字是4字节。1KB=1024B
  • 0
  • 0
@kidultff

PAT-A 真题 – 1041 Be Unique

Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104]. The first one who bets on a unique number wins. For exam ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1039 Course List for Student

Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes for a query.Input Specificati ...
  • 0
  • 0
@kidultff

同步异步、阻塞非阻塞、并发并行的理解

同步与异步:同步:事情一件一件的做。执行事件A时,需要等A完成,再去做事件B。异步:事情可以一起做。执行事件A时,在等待事件A的结果的同时可以去做事件B。状态:等待事件A的结果的同时去做事件B,在做事件B时,每隔一段时间询问一次(轮询)事 ...
  • 0
  • 0