原创 LeetCode---2.Evaluate Reverse Polish Notation
題目鏈接:https://oj.leetcode.com/problems/evaluate-reverse-polish-notation/ 解題思路:簡單的後綴表達式運算,使用棧結構輔助計算 代碼: class Solution {
原创 Swoole源碼學習記錄(一)——進程間共享數據ShareMemory 和 MemoryPool
我接觸PHP的時間不長,最開始只認爲PHP是用來做網站開發,是一個比JSP要簡單的語言。後來,因爲工作需要,一位學長建議我使用Ngnix + PHP 搭建應用服務器,並建議使用現有的框架。一番搜索之下,我意外發現了Swoole http
原创 Swoole源碼學習記錄(五)——鎖和信號(二)
Swoole版本:1.7.4-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis 二.Mutex互斥鎖 接下來是Mutex(互斥鎖)。Swoole的Mu
原创 Swoole源碼學習記錄(二)——三種MemoryPool(上)
swoole版本:1.7.4-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis Swoole中爲了更好的進行內存管理,減少頻繁分配釋放內存空間造成的損
原创 LeetCode---3.Max Points on a Line
題目鏈接:https://oj.leetcode.com/problems/max-points-on-a-line/ 解題思路: 任取一點,求該點與其他所有點的斜率,擁有相同斜率的點處於同一直線上,計算這些點的數量。遍歷所有的點,排序得
原创 Swoole源碼學習記錄(三)——三種MemoryPool(下)
swoole版本:1.7.4-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis 接下來是RingBuffer。這相當於一個循環數組,每一次申請的一塊
原创 Swoole源碼學習記錄(四)——鎖和信號(一)
Swoole版本:1.7.4-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis 寫在開頭的廢話:原本計劃是於第四章開始reactor模塊的分析,但是發
原创 LeetCode---1.Reverse Words in a String
題目鏈接:https://oj.leetcode.com/problems/reverse-words-in-a-string/ 解題思路:以空格爲分隔符提取出每一個單詞後逆序輸出 代碼: class Solution { public
原创 Swoole源碼學習記錄(六)——Pipe管道
Swoole版本:1.7.4-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis Pipe(管道)用於進程之間的數據交互,Linux系統本身提供了pip
原创 Swoole入門課程-李丹陽-專題視頻課程
Swoole入門課程—38342人已學習 課程介紹 Swoole入門課程,掌握Swoole擴展用法課程收益 7節課程,從基礎到應用全面講解Swoole擴展用法講師介紹 李丹陽更多講師課程 PHP擴展Swoo
原创 Swoole全異步HttpServer開發指南-李丹陽-專題視頻課程
Swoole全異步HttpServer開發指南—5843人已學習 課程介紹 教授Swoole異步API的使用,講解結合Promise的Swoole全異步HttpServer開發課程收益 指導學員掌握Swoole異步AP
原创 Swoole AppServer開發教程-李丹陽-專題視頻課程
Swoole AppServer開發教程—4469人已學習 課程介紹 基於Swoole HttpServer + ZPHP的AppServer開發教程,全面講解Swoole服務器開發重難點課程收益 指導學員掌握Swoo
原创 Swoole源碼學習記錄(十五)——Timer模塊分析
swoole版本:1.7.7-stable Github地址:點此查看 1.Timer 1.1.swTimer_interval_node 聲明: // swoole.h 1045-1050h typedef struct _s
原创 swoole入門教程04-多端口監聽、熱重啓以及Timer進階:簡單crontab
環境說明: 系統:Ubuntu14.04 (安裝教程包括CentOS6.5) PHP版本:PHP-5.5.10 swoole版本:1.7.7-stable Github鏈接:https://github.com/LinkedDesti
原创 Swoole源碼學習記錄(十二)——ReactorThread模塊
Swoole版本:1.7.5-stable Github地址:https://github.com/LinkedDestiny/swoole-src-analysis 這一章將分析Swoole的ReactorThread模塊。雖然