﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-lxyfirst-最新评论</title><link>http://www.cppblog.com/lxyfirst/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sat, 19 Sep 2015 01:20:36 GMT</pubDate><lastBuildDate>Sat, 19 Sep 2015 01:20:36 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 分布式高可用id服务器设计实现</title><link>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211864</link><dc:creator>single</dc:creator><author>single</author><pubDate>Fri, 18 Sep 2015 03:41:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211864</guid><description><![CDATA[@star<br>那保存这一块可以考虑将产生的id推到消息队列。<img src ="http://www.cppblog.com/lxyfirst/aggbug/211864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">single</a> 2015-09-18 11:41 <a href="http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211864#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 分布式高可用id服务器设计实现</title><link>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211863</link><dc:creator>star</dc:creator><author>star</author><pubDate>Fri, 18 Sep 2015 02:22:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211863</guid><description><![CDATA[@single<br>多节点没有直接通信，所以id的唯一性是通过配置步长和偏移保证的，比如说整个集群部署两个节点，那么一个节点产生的id都是奇数，另一个节点产生的id都是偶数，从而互相独立且唯一。<br>id的存盘是异步多线程实现，类似于生产者消费者模式，实现方面目前主线程和数据库线程之间通过管道传递数据， 当然用eventfd + lockfree queue 会更好些，framework也提供这种通讯机制 。 <br><br><img src ="http://www.cppblog.com/lxyfirst/aggbug/211863.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">star</a> 2015-09-18 10:22 <a href="http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211863#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 分布式高可用id服务器设计实现</title><link>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211861</link><dc:creator>single</dc:creator><author>single</author><pubDate>Fri, 18 Sep 2015 00:51:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211861</guid><description><![CDATA[博主能再说明一下多节点之间是如何保证id的唯一性，如何保证id_server的id存盘性能<img src ="http://www.cppblog.com/lxyfirst/aggbug/211861.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">single</a> 2015-09-18 08:51 <a href="http://www.cppblog.com/lxyfirst/archive/2015/09/18/211854.html#211861#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: lua和c/c++互相调用实例分析</title><link>http://www.cppblog.com/lxyfirst/archive/2014/11/29/65447.html#208984</link><dc:creator>iHuahua</dc:creator><author>iHuahua</author><pubDate>Sat, 29 Nov 2014 05:54:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2014/11/29/65447.html#208984</guid><description><![CDATA[@金山词霸2008<br>术业有专攻，C++那么强大，你倒是用他写个网页我看看<img src ="http://www.cppblog.com/lxyfirst/aggbug/208984.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">iHuahua</a> 2014-11-29 13:54 <a href="http://www.cppblog.com/lxyfirst/archive/2014/11/29/65447.html#208984#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: linux下设置线程的名字</title><link>http://www.cppblog.com/lxyfirst/archive/2014/10/31/141288.html#208735</link><dc:creator>拉力</dc:creator><author>拉力</author><pubDate>Fri, 31 Oct 2014 06:57:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2014/10/31/141288.html#208735</guid><description><![CDATA[@dhao123@sina.com<br>查看 cd/proc/pid/task/tid/status 文件的第一个名字；<br>pid ：进程号<br>tid : 线程号<img src ="http://www.cppblog.com/lxyfirst/aggbug/208735.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">拉力</a> 2014-10-31 14:57 <a href="http://www.cppblog.com/lxyfirst/archive/2014/10/31/141288.html#208735#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: lua和c/c++互相调用实例分析</title><link>http://www.cppblog.com/lxyfirst/archive/2014/03/13/65447.html#206160</link><dc:creator>fy</dc:creator><author>fy</author><pubDate>Thu, 13 Mar 2014 10:50:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2014/03/13/65447.html#206160</guid><description><![CDATA[lua_pop(l,1) ;                        //恢复lua的栈<br><br>这一行应该改为 lua_pop(l,2) ; <img src ="http://www.cppblog.com/lxyfirst/aggbug/206160.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">fy</a> 2014-03-13 18:50 <a href="http://www.cppblog.com/lxyfirst/archive/2014/03/13/65447.html#206160#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: lua和c/c++互相调用实例分析</title><link>http://www.cppblog.com/lxyfirst/archive/2014/02/02/65447.html#205616</link><dc:creator>ixil</dc:creator><author>ixil</author><pubDate>Sun, 02 Feb 2014 06:46:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2014/02/02/65447.html#205616</guid><description><![CDATA[@hunter<br>point=alien.buffer<br>赋值<br>x=point:get(1,&quot;long&quot;)<br>y=point:get(5,&quot;long&quot;)<img src ="http://www.cppblog.com/lxyfirst/aggbug/205616.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">ixil</a> 2014-02-02 14:46 <a href="http://www.cppblog.com/lxyfirst/archive/2014/02/02/65447.html#205616#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: linux下设置线程的名字</title><link>http://www.cppblog.com/lxyfirst/archive/2012/05/28/141288.html#176476</link><dc:creator>dhao123@sina.com</dc:creator><author>dhao123@sina.com</author><pubDate>Mon, 28 May 2012 03:24:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2012/05/28/141288.html#176476</guid><description><![CDATA[请问大侠： top -H 这个命令可以显示出来 之前设置好的thread 名字么？<br>这个选项字 -H 表示什么？ 没有man到啊<br><br>就是说通过prctl () 这个接口设置thread 名字后，如何验证啊？<br>用top命令 或者pgrep 之类的<br><img src ="http://www.cppblog.com/lxyfirst/aggbug/176476.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">dhao123@sina.com</a> 2012-05-28 11:24 <a href="http://www.cppblog.com/lxyfirst/archive/2012/05/28/141288.html#176476#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: lua和c/c++互相调用实例分析</title><link>http://www.cppblog.com/lxyfirst/archive/2012/05/03/65447.html#173562</link><dc:creator>star</dc:creator><author>star</author><pubDate>Thu, 03 May 2012 02:20:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2012/05/03/65447.html#173562</guid><description><![CDATA[@jerome<br>链接时找不到函数定义，这个应该是lua库的路径问题。<img src ="http://www.cppblog.com/lxyfirst/aggbug/173562.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">star</a> 2012-05-03 10:20 <a href="http://www.cppblog.com/lxyfirst/archive/2012/05/03/65447.html#173562#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: lua和c/c++互相调用实例分析[未登录]</title><link>http://www.cppblog.com/lxyfirst/archive/2012/04/26/65447.html#172839</link><dc:creator>tommy</dc:creator><author>tommy</author><pubDate>Thu, 26 Apr 2012 09:43:00 GMT</pubDate><guid>http://www.cppblog.com/lxyfirst/archive/2012/04/26/65447.html#172839</guid><description><![CDATA[请看清楚了作者写的文件名是test_lua.c<br>如果你保存为cpp文件了，关于lua相关头文件应该使用:<br>extern &quot;C&quot;{<br>#include &quot;lua.h&quot;<br>#include &quot;lualib.h&quot;<br>#include &quot;lauxlib.h&quot;<br>}<br>否则编译会提示你的那种问题<img src ="http://www.cppblog.com/lxyfirst/aggbug/172839.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lxyfirst/" target="_blank">tommy</a> 2012-04-26 17:43 <a href="http://www.cppblog.com/lxyfirst/archive/2012/04/26/65447.html#172839#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>