自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

翻译 2020 Planning Guide for Data Management

Licensed for DistributionThis research note is restricted to the personal use of (). 2020 Planning Guide for Data ManagementPublished 7 October 2019 - ID G00401283 - 91 min readBy Analysts Sanjeev Mohan, Lyn Robison, Sumit Pal, Joe Maguire, Dk Mukherjee

2020-08-18 10:57:57 2945 1

原创 583. Delete Operation for Two Strings

/*Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string.Example 1:Input: “sea...

2020-03-31 23:37:42 114

原创 264. Ugly Number II

/*Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.Example:Input: n = 10Output: 12Explanation: 1, 2, 3, 4, 5, 6, 8, 9, 10, ...

2020-03-29 23:24:38 133

原创 1367. 二叉树中的列表

/*Given a binary tree root and a linked list with head as the first node.Return True if all the elements in the linked list starting from the head correspond to some downward path connected in the b...

2020-03-22 16:53:37 169

原创 面试题 17.05. Find Longest Subarray LCCI

You are given an array of strings words and a string chars.A string is good if it can be formed by characters from chars (each character can only be used once).Return the sum of lengths of all good ...

2020-03-22 13:04:52 168

转载 inode的理解

<div id="post_detail"> [转]理解Linux文件系统之inode 很少转发别人的文章,但是这篇写的太好了。理解inode 作者: 阮一峰inode是一个重要概念,是理解Unix/Linux文件系统和硬盘储存的基础。我觉得,理解inode,不仅有助于提高系统操作水平,还...

2019-05-28 18:13:52 1455

转载 Python快速教程 - Numpy和Matplotlib

基础篇numpy和Matplotlib篇本篇部分代码的下载地址:https://github.com/frombeijingwithlove/dlcv_for_beginners/tree/master/chap55.3 Python的科学计算包 – Numpynumpy(Numerical Python extensions)是一个第三方的Python包,用于科学计算。这个库的前身...

2018-11-12 21:10:06 253

原创 container_of

#define offsetof(TYPE, MEMBER) ((size_t) &amp;((TYPE *)0)-&gt;MEMBER)/** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: t...

2018-10-23 15:38:23 83

转载 linux基础数据结构之list

在Linux内核中,提供了一个用来创建双向循环链表的结构 list_head。虽然linux内核是用C语言写的,但是list_head的引入,使得内核数据结构也可以拥有面向对象的特性,通过使用操作list_head 的通用接口很容易实现代码的重用,有点类似于C++的继承机制(希望有机会写篇文章研究一下C语言的面向对象机制)。下面就是kernel中的list_head结构定义:struct lis...

2018-10-21 16:07:49 260

原创 arm非对齐访问编译器选项

-munaligned-access-mno-unaligned-access Enables (or disables) reading and writing of 16- and 32- bit values from addresses that are not 16- or 32- bit aligned. By default unaligned access is disa...

2018-10-15 21:02:04 2599

原创 linux spin_lock应用分析

spin_lock是一种死等机制。场景分析:spin_lock保护的资源可能来自多个cpu_core的进程上下文和中断上下文。1,两个进程A和B,在系统调用时均会访问共享资源R,假设A访问共享资源R时发生中断,中断结束后唤醒了具有更高优先级的进程B,如果没有锁保护,就会导致有两个进程进入临界区,导致竞态。在进程A加上spin_lock,那么B在由于没有获得lock,会一直等待。如果A,B...

2018-10-08 20:11:00 247

转载 gcc常用编译选项

转 gcc常用编译选项 汇总 2014年08月22日 11:42:45 奔跑的路 阅读数:3690更多 &lt;div class="tags-box space"&gt; &lt;span class="label"&gt...

2018-10-05 19:14:47 561

原创 makefile写作

makefile的几种debug方法//不能打印出行号,文件名$(info,"信息")$(info, $(变量名))//可以打印出行号,文件名$(warning,"信息")$(warning, $(变量名))//可以直接停止当前makefile的编译$(error,"信息")$(error, $(变量名))//echo只能在target后面,最前面是个TAB @echo “信...

2018-10-05 19:12:27 274

转载 gdb调试程序

来自Ubuntu中文 跳转至: 导航, 搜索 来自Ubuntu中文目录使用GDBGDB的命令...

2018-09-06 12:06:22 220

转载 认真分析mmap:是什么 为什么 怎么用

认真分析mmap:是什么 为什么 怎么用 阅读目录mmap基础概念mmap内存映射原理mmap和常规文件操作的区别mmap优点总结mmap相关函数mmap使用细节回到顶部mmap基础概念mmap是一种内存映射文件的方法,即将一个文件或者其它对象映射到进程的地址空间,实现文件磁...

2018-09-04 22:22:13 163

转载 Coursera 公开课:机器学习roadmap

最近机器学习工程师已经成为了一个非常热门的岗位,很多的工程师都想转行到这个岗位。本文根据 Coursera 上面的课程,列了一个从新手到专业工程师的学习计划,提供给大家学习。本场 Chat 只有文章,没有交流。最近机器学习工程师已经成为了一个非常热...

2018-08-17 14:21:44 205

转载 linux file与inode

Linux字符设备中的两个重要结构体(file、inode) 对于Linux系统中,一般字符设备和驱动之间的函数调用关系如下图所示上图描述了用户空间应用程序通过系统调用来调用程序的过程。一般而言在驱动程序的设计中,会关系 struct ...

2018-08-14 22:23:34 1791

转载 repo forall -c

原 repo forall -c &lt;div class="article-info-box"&gt; &lt;div class="article-bar-top d-flex"&gt; &lt;span class="time"&gt..

2018-06-12 10:45:09 664

原创 linux中断注册及中断线程化

linux中高优先级任务从runable到真正被调度的时间是不确定的,主要有两方面因素, 1,内核中总有些代码持有自旋锁资源(cpu一直等待),或者有些代码段会调用preempt_disable显示的禁止抢占。 2,中断上下文具有更高的优先级(包括hw_irq_handler、softirq、tasklet等)可以抢占进程上下文。一般外设中断被分为top half和bottom half(...

2018-05-17 21:17:20 4492

转载 linux自旋锁

一、前言 在linux kernel的实现中,经常会遇到这样的场景:共享数据被中断上下文和进程上下文访问,该如何保护呢?如果只有进程上下文的访问,那么可以考虑使用semaphore或者mutex的锁机制,但是现在中断上下文也参和进来,那些可以导致睡眠的lock就不能使用了,这时候,可以考虑使用spin lock。本文主要介绍了linux kernel中的spin lock的...

2018-05-15 17:54:07 1309

转载 perf part II

Perf – Linux下的系统性能调优工具,第 2 部分特殊用法以及内核调优示例 ...

2018-05-15 16:17:42 171

转载 perf part I

...

2018-05-15 15:44:35 176 1

转载 armv7实现原子操作的本质——ldrex和strex指令

Linux内核同步机制之(一):原子操作 作者:linuxer 发布于:2014-10-10 17:56 分类:内核同步机制 一、源由 我们的程序逻辑经常遇到这样的操作序列: 1、读一个位于memory中的变量的值到寄存器中 2、修改该变量的值(也就是修改寄存器中的值) ...

2018-05-14 19:17:56 6794

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除