上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 103 下一页
摘要: 结构化编程的要点就是控制流。 结构化编程的控制流是通过变量的比较进行的; 线程的执行也有控制流; 线程流程的控制是通过同步变量完成的; 线程的同步变量是由内核提供的; 阅读全文
posted @ 2018-01-19 21:50 zzfx 阅读(134) 评论(0) 推荐(0)
摘要: 所谓的线程安全指的是线程执行时上线文数据的一致性能够得到保证。 线程的运行环境保持一致。 线程安全要考虑的问题是“刻舟求剑”的问题。 阅读全文
posted @ 2018-01-19 21:23 zzfx 阅读(126) 评论(0) 推荐(0)
摘要: 将数据结构和操作数据结构的算法进行了绑定。 阅读全文
posted @ 2018-01-19 20:39 zzfx 阅读(128) 评论(0) 推荐(0)
摘要: 数据:线程属性、怎么使用cpu;线程控制数据。 算法:解决什么问题; 并行:通信、同步与协作。 阅读全文
posted @ 2018-01-19 17:04 zzfx 阅读(123) 评论(0) 推荐(0)
摘要: In computer science, the event loop, message dispatcher, message loop, message pump, or run loop is a programming construct that waits for and dispatc 阅读全文
posted @ 2018-01-19 16:23 zzfx 阅读(195) 评论(0) 推荐(0)
摘要: 本质:将成员函数与对象数据进行剥离。 从编程语言的角度看,面向对象是将数据和对数据的操作进行了绑定; 调用对象成员函数,本质是对对象的数据进行操作;对象作为缺省参数传进成员函数,从而完成操作。 从面向对象转化成面向结构编程,需要对成员函数和对象数据进行解绑; 将对象以显式参量的形式传进转换后的函数, 阅读全文
posted @ 2018-01-19 15:40 zzfx 阅读(593) 评论(0) 推荐(0)
摘要: 调用约定: __cdecl __fastcall与 __stdcall,三者都是调用约定(Calling convention),它决定以下内容:1)函数参数的压栈顺序,2)由调用者还是被调用者把参数弹出栈,3)以及产生函数修饰名的方法。 1、__stdcall调用约定:函数的参数自右向左通过栈传递 阅读全文
posted @ 2018-01-19 15:26 zzfx 阅读(485) 评论(0) 推荐(0)
摘要: 函数调用约定描述了如何以正确的方式调用某些特定类型的函数。包括了函数参数在栈上的分配顺序、有哪些参数将通过寄存器传入,以及在函数返回时函数栈的回收方式等。 函数调用约定的几种类型 stdcall,cdecl,fastcall,thiscall,nakedcall,pascal stdcall调用约定 阅读全文
posted @ 2018-01-19 15:23 zzfx 阅读(1157) 评论(0) 推荐(0)
摘要: 关于 C/C++ 函数调用约定,大多数时候并不会影响程序逻辑,但遇到跨语言编程时,了解一下还是有好处的。 VC 中默认调用是 __cdecl 方式,Windows API 使用 __stdcall 调用方式,在 DLL 导出函数中,为了跟 Windows API保持一致,建议使用 __stdcall 阅读全文
posted @ 2018-01-19 15:20 zzfx 阅读(347) 评论(0) 推荐(0)
摘要: Grand Central Dispatch (GCD) is a technology developed by Apple Inc. to optimize application support for systems with multi-core processors and other  阅读全文
posted @ 2018-01-18 23:51 zzfx 阅读(209) 评论(0) 推荐(0)
摘要: POSIX Threads, usually referred to as pthreads, is an execution model that exists independently from a language, as well as a parallel execution model 阅读全文
posted @ 2018-01-18 23:49 zzfx 阅读(202) 评论(0) 推荐(0)
摘要: In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user acti 阅读全文
posted @ 2018-01-18 23:47 zzfx 阅读(371) 评论(0) 推荐(0)
摘要: 操作方式、含义、存储方式。 In computer science and computer programming, a data type or simply type is a classification of data which tells the compiler or interpr 阅读全文
posted @ 2018-01-18 21:58 zzfx 阅读(916) 评论(0) 推荐(0)
摘要: 以前本站发布过《编程语言时间地理图》、《计算机编程简史图》,下面是两张关于编程语言的进化图。 第一张是比较宏观的,来源在这里,虽然是去年的,但还是比较不错的,其把计算机编程语言分成了五个时代—— 语言诞生。1940年代。第一个语言应该是:Ada Lovelace, 编译器时代。1950年代。这个时代 阅读全文
posted @ 2018-01-18 17:04 zzfx 阅读(326) 评论(0) 推荐(0)
摘要: Type system[edit] Main articles: Data type, Type system, and Type safety A type system defines how a programming language classifies values and expres 阅读全文
posted @ 2018-01-18 15:54 zzfx 阅读(319) 评论(0) 推荐(0)
摘要: In computer programming, run-time type information or run-time type identification (RTTI)[1] refers to a C++ mechanism that exposes information about 阅读全文
posted @ 2018-01-18 15:46 zzfx 阅读(371) 评论(0) 推荐(0)
摘要: 类型系统的属性: 1、结构属性; 2、规则属性;类型系统定义了一套规则(内部数据的访问规则、函数的访问规则、类型的比较与转化规则),以供编译和运行时进行检查。 In programming languages, a type system is a set of rules that assigns 阅读全文
posted @ 2018-01-18 15:38 zzfx 阅读(274) 评论(0) 推荐(0)
摘要: 动态改变运行时结构 Dynamic programming language, in computer science, is a class of high-level programming languages which, at runtime, execute many common pro 阅读全文
posted @ 2018-01-18 15:12 zzfx 阅读(261) 评论(0) 推荐(0)
摘要: 动态语言:修改结构; 动态类型:运行时类型检查; 编译语言:机器码、解释器; 强类型:类型不可变。 编译型语言和解释型语言 1、编译型语言 需通过编译器(compiler)将源代码编译成机器码,之后才能执行的语言。一般需经过编译(compile)、链接(linker)这两个步骤。编译是把源代码编译成 阅读全文
posted @ 2018-01-18 15:06 zzfx 阅读(623) 评论(0) 推荐(0)
摘要: this 和 self指针 为函数提供了运行上下问;为函数提供了当前对象的其实地址,方便函数的对对象的访问。 阅读全文
posted @ 2018-01-18 12:49 zzfx 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 103 下一页