发帖数: 1 | 1 利率上升是個長期的趨勢。google下10 year treasury yield的歷史,上一個週期是30
多年,再上一個週期20多年. 你的做法只是針對短期的利率變動,解決不了根本問題.
不建議買bond fund ,建議買bond. 區別在哪裡呢??bond fund 沒有到期日,而bond
是有確定的到期日的. 可以有意識的选择不同到期日的bond,都不做交易,到期拿回本
金. 利率的变动对你的回报没有影响. 先到期的bond又可以以新的价位补仓.
估计你的401k里是不可能买bond的,在brokerage account 里买吧. 考虑到税收,尽
量用municipal bond. 现在多是premium bond,所以还要注意买non-callable bond. |
|
发帖数: 1 | 2 利率上升是個長期的趨勢。google下10 year treasury yield的歷史,上一個週期是30
多年,再上一個週期20多年. 你的做法只是針對短期的利率變動,解決不了根本問題.
不建議買bond fund ,建議買bond. 區別在哪裡呢??bond fund 沒有到期日,而bond
是有確定的到期日的. 可以有意識的选择不同到期日的bond,都不做交易,到期拿回本
金. 利率的变动对你的回报没有影响. 先到期的bond又可以以新的价位补仓.
估计你的401k里是不可能买bond的,在brokerage account 里买吧. 考虑到税收,尽
量用municipal bond. 现在多是premium bond,所以还要注意买non-callable bond. |
|
f******e 发帖数: 57 | 3 兄弟去年12月从一家IT公司换到投行,积累了一些BANK/IT面试题。可靠消息BARCAP
IT今年要招1000人,大家可以试着去BARCAP网站投简历
Goldman Sachs
* Many Java cuncurrency questions (Java 1.5 multiple thread model)
o Future class (what is it and what is it for)
o Difference between Callable and Runable
o How to implement Latches using wait/notify
o What is volatile modifier, difference from atomic classes
+ Volatile does not solve “mutual exclusive” issue
o Why atomic classes?
|
|
p*******n 发帖数: 776 | 4 Mark 赞
IT今年要招1000人,大家可以试着去BARCAP网站投简历
Goldman Sachs
* Many Java cuncurrency questions (Java 1.5 multiple thread model)
o Future class (what is it and what is it for)
o Difference between Callable and Runable
o How to implement Latches using wait/notify
o What is volatile modifier, difference from atomic classes
+ Volatile does not solve “mutual exclusive” issue
o Why atomic classes?
+ Performance gained by CAS |
|
l******y 发帖数: 313 | 5 after all your kind suggestions, how about this version of my resume?
SUMMARY
Over three year's fixed income portfolio management experience. Supported
senior
managers to structure portfolios, conduct security and economic analysis and
trade. Focused on selection and trading of intermediate corporates,
treasuries,
agencies, floaters and callables with lot size 500M-3MM for all fixed income
accounts. Supplied operational assistance on appraisals, duration analysis
and
Bondedge analytical software |
|
x*****p 发帖数: 1707 | 6 At least at the level of the following questions?
1. How to implement a HashSet by ArrayList?
2. Difference between Callable and Runnable.
3. How to make a String mutable?
etc... |
|
p*****2 发帖数: 21240 | 7
object
刚order了java concurrency in practice, 同时在看CC150相关章节,thinking in
java concurrency那章,以及effective java concurrency那章。简单列了一个提纲,
希望这周或者下周可以搞完。
1. How to create thread
implement Runnable
implement Callable
extends Thread
2. How to start thread
Thread pool
Thread.start
3. Synchronization
synchronized keyword
Lock
Semaphore
Immutability
volatile
java.util.concurrent.atomic
concurrent collection
4. Communiication
wait, notify, notifyall
Condition
concurrent collection
5. Common coding questions
bl... 阅读全帖 |
|
c********l 发帖数: 8138 | 8 【 以下文字转载自 Programming 讨论区 】
发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: Java 多线程 的架构如何改进?
发信站: BBS 未名空间站 (Tue Jul 9 22:12:35 2013, 美东)
目前有这么一个程序,共有如下三种线程:
1,GUI主线程, non-daemon
2,2个服务器线程,分别监听端口号为8000和8001的socket, non-daemon
3,每当服务器socket.accept()时,生成一个新的daemon线程,
然后在这些n个新生成的并发线程中处理具体业务。
所以,主线程,服务器线程,daemon线程,这三种线程目前是三个实现Runnable的类
上述设计比较过时,因为是用的非常传统的implements Runnable的教科书式方法
有没有更先进的,比如Future/Callable/ExecutorService?
如果是这样,那么具体应该如何改进? |
|
x******a 发帖数: 11 | 9 Phone screen 1, focus on Linux and network
1. Configuration files in /etc
2. What command do you use to look at the system performance in linux? CPU/
IO/memory etc? --- top, memstat, ifconfig, netstat, free -m
3. sudo vs su--- in very detailed level
4. how to find current running Java process without using ps command --- /
proc
5. how to monitor a process performance --- JMX, jconsole with my experience
6. ip v4 vs ip v6, tcp vs udp
7. Sth about data center network setting, which is not my domai... 阅读全帖 |
|
s********e 发帖数: 340 | 10 我也说了join了, 但是面试官说,这个也不现实,因为线程池的线程很多比如100个,
1000个。
有没有什么可以做flag判断的? 我说了一个也许可以使用callable接口,返回线程任
务的执行结果,根据这个判断来决定主线程是否应该执行。但是我自己后来回来的路上
想想,感觉好像也不对。 |
|
g*****g 发帖数: 34805 | 11 Executors.newFixedThreadPool(1);
class PrintTask extends Callable {
public PrintTask(DeviceEnum device, int printTime);
}
record current timestamp and use finish time to come up with statistics is
enough.
Not rocket science. |
|
g*****g 发帖数: 34805 | 12 For simulation,you just need to demonstrate the ability submit each task
asynchronously. That's why each task is a callable future.
e.g.
Future f = threadpool.submit(new PrintTask(USB, 10));
different |
|
w*******s 发帖数: 138 | 13 单线程肯定是对的,但是应该没有符合题意。
题目要求应该是execute(id, callable),对应于同一个id的任务才会需要顺序执行。
但是有很多不同的id,用一个线程池来同时处理。 |
|
n*******s 发帖数: 17267 | 14 现在是不是流行问callable 和runnable的区别?lol |
|
t******d 发帖数: 1383 | 15 现在有考future+ callable的么? |
|
s******7 发帖数: 1758 | 16 趁热发了算了, 怕过几天自己都忘了
电面:
东部都问基础知识:
thread vs process
sychronized的方法有个很耗时的步骤,如何防止死等,我回答放到callable里面,然
后future.get里面设置time out
后面一个stream, 随时找top K rank的股票
onsite:
1. 实现browser new tab的时候显示前十个你最常访问的地址的功能,又是top 10
设计一个类似online judgement的能让人运行代码的网页, 设计如何共享和专有
数据库,还是如何编译string成class, 生成instance,运行返回结果, 说说就行,不
要求写代码
2 实现数据流最近两分钟,value大于或者小于多少的数据
regular express实现,最后要求优化 在match大量的string, 居然要记录 state
machine, 这个我就坦白不会了
设计类似华容道的游戏,只要生成能成功的布局,dfs注意记录每一步的状态,用个
matrix, 发现重复就停止,讲讲思路就可以了
brain teaser: 黑帽子... 阅读全帖 |
|
b****b 发帖数: 199 | 17 MBNA and many other banks are higher than that. Capital One is the highest for
fix-term CDs. But besides interest rate, another important thing to consider
is the early withdrawal penalty. Some charges you half of total interest, and
some just charge you 6 months, and MBNA may make you to lose your principals
if you withdraw early. So that's important to know.
By the way, there are many other types of fixed income and CDs other than
fixed term, for example, callable CDs, brokage CDs and zero cou |
|
b****b 发帖数: 199 | 18 well, you certainly can google them to find more information. briefly,
brokeage CDs is when you buy a bank CDs (FDIC-insured) from a broker.
Generally, the rate is better than if you buy from the bank directly (because
of the competition).
callable CDs give higher interest because bank has the right to terminate them
when interest goes down (not very likely though).
zero coupons let you get face value after a certain number of years, similiar
to EE bonds.
I didn't tell you that the best interest |
|
|
|
m**********e 发帖数: 1045 | 21 American Family Financial Statistics
Average American family savings account balance $3,800
Percent of working Americans who are not saving for retirement 40 %
Percent of American families who have no savings at all 25 %
Average amount saved for retirement $35,000
Average American household debt $117,951
Average American family home value $160,000
Average amount owed on home mortgage $95,000
Average American household annual income $43,000
Average credit card debt $2,2... 阅读全帖 |
|
b***c 发帖数: 2280 | 22 【 以下文字转载自 Investment 讨论区 】
发信人: basic (nobody), 信区: Investment
标 题: 包子请教在Merrill Edge买过单只债券的大虾们
发信站: BBS 未名空间站 (Thu Aug 21 15:13:29 2014, 美东)
Yield To Worst和Coupon Rate的区别是什么?
我倾向于持有债券到期,规避美联储升息带来的债券市场价格波动,同时获得尽可能高
的利息收益。应该更看重哪一个指标?
我主要想持有短期,1年内为主,最多不超过3年期的。
为了兼顾高利息和安全性,想买投资级的公司债。callable这个因素需要考虑么?
另外insured与否是什么意思?
Traditoional IRA账户,大约5万美刀的资金量。
需要分散在多少只债券上比较安全?
agency债券是不是两房之类机构发的债?和公司债比收益率有优势么?
大侠们还有什么建议或者注意事项交代么?
另外,我在Merrill Edge有每月30次免费交易奖励,可以用来买卖股票,ETF,请问购
买单只债券可以享受这个免交易费的待遇么?
菜鸟问题,高人勿PE... 阅读全帖 |
|
r******l 发帖数: 10760 | 23 最近刚听说note这种东西,搜了一下板上似乎没有讨论的(也许是用的其他名字?)听
agent讲note似乎很好: 收益不错,风险不大。这里这么多人搞个high earning saving
都讨论半天,为啥没人讨论这个呢?
下面是某一个15年期的Note的details,类似这种东西靠谱么?
Year1-2: 10% (Fixed)
Year 3-15: 10 x (30years' CMS - 2years' CMS), Subject to S&P 500 Index
ANDRussell 2000 Index ≥ 60% on 5/26/2015 (Daily Accrual), Cap at 10%
Non-Callable Note
Monthly Payment
Non-Principal Protected Note
Payment at Maturity:
1. If BOTH Final Index Value of S&P 500 Index AND Russell 2000 Index ≥ 50%
of initial level on 5/26/2015, Pr... 阅读全帖 |
|
a**z 发帖数: 472 | 24 我记错了,我说的那种叫callable。。不知道一不一样。。。 |
|
|
j***b 发帖数: 5901 | 26 Want to retire earlier. |
|
d******8 发帖数: 1972 | 27 Oct 27 (Reuters) - Morgan Stanley on Thursday added
$1 billion of senior unsecured notes to an existing 10-year
issue, said IFR, a Thomson Reuters service.
Morgan Stanley was the sole bookrunning manager for the
sale.
BORROWER: MORGAN STANLEY
AMT $1 BLN COUPON 5.5 PCT MATURITY 7/28/2021
TYPE SR NTS ISS PRICE 98.533 FIRST PAY 1/28/2011
MOODY'S A2 YIELD 5.697 PCT SETTLEMENT N/A
S&P SINGLE-A SPREAD 335 BPS PAY FREQ SEMI-ANNUAL
FITCH SINGLE-A ... 阅读全帖 |
|
i*******e 发帖数: 1904 | 28 Come on, HK stock market was manipulated to the 21500 level to knock out
those bull/bear callable options (牛熊证). At 21500 level, there are bearish
options worth hundreds of millions that would be knocked out. For this very
reason, MM is using heavy weighting stocks to lift the index to 21500.
Please have some deeper thought when you see those pattens. Thanks. |
|
s*******t 发帖数: 335 | 29 Financing Options for Small Biotechnology Companies
If you are an investor in biotechnology companies, periodic financings are a
fact of life and necessary for the company to survive and be successful.
Nevertheless, there is a belief among some investors that anytime a Company
raises money through issuing shares, it dilutes and harms existing
shareholders. However, issuing new shares is not always a bad thing for
existing shareholders. The willingness of new investors to put money into a
company... 阅读全帖 |
|
b***c 发帖数: 2280 | 30 【 以下文字转载自 Investment 讨论区 】
发信人: basic (nobody), 信区: Investment
标 题: 包子请教在Merrill Edge买过单只债券的大虾们
发信站: BBS 未名空间站 (Thu Aug 21 15:13:29 2014, 美东)
Yield To Worst和Coupon Rate的区别是什么?
我倾向于持有债券到期,规避美联储升息带来的债券市场价格波动,同时获得尽可能高
的利息收益。应该更看重哪一个指标?
我主要想持有短期,1年内为主,最多不超过3年期的。
为了兼顾高利息和安全性,想买投资级的公司债。callable这个因素需要考虑么?
另外insured与否是什么意思?
Traditoional IRA账户,大约5万美刀的资金量。
需要分散在多少只债券上比较安全?
agency债券是不是两房之类机构发的债?和公司债比收益率有优势么?
大侠们还有什么建议或者注意事项交代么?
另外,我在Merrill Edge有每月30次免费交易奖励,可以用来买卖股票,ETF,请问购
买单只债券可以享受这个免交易费的待遇么?
菜鸟问题,高人勿PE... 阅读全帖 |
|
s******7 发帖数: 446 | 31 Bond Yield
Yield is a general term that relates to the return on the capital you invest
in a bond. You hear the word "yield" often with respect to bond investing.
There are, in fact, a number of types of yield. The terms are important to
understand because they are used to compare one bond with another to find
out which is the better investment.
Coupon yield is the annual interest rate established when the bond is issued
. It's the same as the coupon rate and is the amount of income you collect
... 阅读全帖 |
|
y****i 发帖数: 778 | 32 【 以下文字转载自 Bond 俱乐部 】
发信人: yangqi (zzzzzz), 信区: Bond
标 题: 市政债券(二)优点
发信站: BBS 未名空间站 (Sun Sep 1 22:30:01 2013, 美东)
1)本金的安全性
很多投资者,特别是退休或接近退休的,对本金的安全性要求很高。目前美国的定存,
货币市场基金和短期国债利息不到1%,而且都要交联邦所得税。投资级市政债券的违约
率在穆迪投资报告"US Municipal Bond Defaults and Recoveries, 1970-2011"只有0.
08%,意味着虽然投资级市政债券还是有本金损失的风险,但是不到千分之一。如果加
上第三方保险,替代定期存款是不错的选择。
2)定期可以预测的收入
市政债券通常六个月支付一次利息,除非提前赎回(callable bonds)或是违约,所以
投资者有一个稳定的,可以预期的收入。对于有赎回权的债券来说,你有可能在到期日
前收回本金,收益率取决于你买入的价格和债券的息率。
3)利息收入免税
市政债券的利息免交联邦所得税,也可能同时豁免州税和市税,如果债券持有人的所在... 阅读全帖 |
|
r***1 发帖数: 35 | 33 Can anyone tell me why some bond's coupon value is "0"? Also why the
following bond has so much discount? Possibly school district bankrupt?
Is it good time to buy bond now?
Thanks in advance.
503678NX8 LA MESA-SPRING VY CALIF SCH DI GO REF BDS CA A1/A+
NATL 75.9 3.291 3.291 0 8/1/2022 5 Aug PRIM/
SECNDRY ED ULT G.O. ALL BONDS Proj ELECTION OF 2002 Ser SER B, Non Callable
when |
|
y****i 发帖数: 778 | 34 Because it is a zero coupon bond. You buy it with discount and it pay $100
face value at maturity, no semiannually interest payment like a regular bond
. For more details, pls see topics or ask questions in bond club.
http://www.mitbbs.com/club_bbsdoc/Bond.html
Buying an individual municipal bond with insurance is still a good deal,
especially when the ask price is lower than the 3rd party price. The chance
is lower when the bond price is high and market interest rate is low, but
higher when the... 阅读全帖 |
|
D*A 发帖数: 1169 | 35 for example:
Ah 10c 8h
Purenuts/nuts: AcAd
Slowplayable hand: 10d10h 8c8s
Willing to lose hand(non-foldable hand): 9hJh Kh10h Ad10h
Re-Raiseable hand As8c 10h8c
Raiseable hand AdKc AcQd AsJh
fold-able(Bluffied-able) hand Ad6c Kh10d
Bettable hand Ac3d 10h9c
semibluff-able hand 5h9h
callable hand 9sJc 8h9d
playable(checkable) hand 10d6c KhQc
unplayable hand 2c6d 6s7c |
|
s*********k 发帖数: 1989 | 36 ye, 6-handed. Very aggressive even at the early level (BB<80). Big bet on
river and make it to you no callable. Clearly high possibility it is just a
bluff. I played MTT-Micro-6handed many before. This is MTT-Medium. Since every one is new to me, it takes long to figure out their ranges.
Well, I am still alive. |
|
f*****g 发帖数: 15860 | 37 来自主题: TexasHoldem版 - 怎么办? i guess this is a typical situation where both of us underestimate the other
's hand strength.
if he 3.5x preflop, this hand may be a total different story and he'll get
my stack for sure.
his river raise apparently puts me on a callable hand but not monster.
we both "guess" the other would not call a shove with a hand not having the
other beat, so re-shoving here is questionable.
great for you
to |
|
f*****g 发帖数: 15860 | 38 来自主题: TexasHoldem版 - 怎么办? on the flop, his hand is way ahead 95% of time, way behind 5% as in this
case, a callable raise is fine but if he wants to get my whole stack, this
might fail most of time for out-of-position me.
his river action is questionable as i said.
value.
at
.
people folding before you put in a raise or a big over bet. Build up the
pot and make the plan how to get the whole stack before the hand is over. |
|
s*********k 发帖数: 1989 | 39 what did you indeed do? Fold?
It is callable. Miniraise is awkward, have to say. MP appearantly has
over pair. BB hard to tell, he could has 55, 22/44 etc. THe only thing
you worry is 44 (against 56s/A5s, u still has 33% chance). Most likely
BB has over pair also (55/45s is more possible). |
|
R****a 发帖数: 1492 | 40
我美狄亚那故事绝对读完了 美狄亚小同学最后变恐怖老巫婆了
股票比男人好,起码股票不会升值之后甩了SHAREHOLDER
很多男人就是CALLABLE的JUNK BOND,价值刚刚上去就CALL了~~ |
|
k**********g 发帖数: 989 | 41 The answer is also MATLAB. Seriously.
Usually, a small-scale prototyping is implemented in MATLAB.
C/C++ functions can be compiled into modules (e.g. DLL) to make them
callable from MATLAB.
Alternatively, it is possible for C/C++ programs to save their data as
MATLAB MAT file, or a different data file format of your choice.
The C++ program will need to partition and stage long operations in suitable
ways, saving intermediate numerical results into files, etc.
Also, it helps if the workload by th... 阅读全帖 |
|
d****d 发帖数: 133 | 42 可以,COM Callable Wrapper (CCW) |
|
h*********o 发帖数: 62 | 43 since you are using jre 1.6, using the new thread framework introduced from
1.5 would be a better idea.
You might want to have a look at futuretask, callable, executor framework,
etc. the new framework is much better than the old one in aspects of value
return, cancellation, interruption, and exception handling, etc.
As I remember, you should be able to find the code sample to your question
in the book of Java Concurrency... (sorry, forget the full name). The book
was written by the lead desig |
|
u****s 发帖数: 2186 | 44 Q1. What's the difference between process and thread?
Q2. What's the difference between Runnable and Callable?
Q3. What's the difference between when use synchronized method/block and
when use ReentrantLock
Q4. How to achieve wait/notify/notifyAll using java.util.concurrent package?
Q5. What is serialVersionUID? what is it for? |
|
|
u****s 发帖数: 2186 | 46 try
Thread.getCurrentThread().getId() |
|
|
s*******e 发帖数: 3042 | 48 Gut feeling is that you have I/O ops in a synchronized block, which is
always a practice causing many uncertainties. However, in your original post
you said the performance only deteriorates when the number of clients
exceeds 5. Are all clients reading from the same data set? If the answer is
yes and the performance only depends on the number of clients, then you may
have too much synchronization for reading which is neither necessary nor
good.
Not sure how your system is designed, but you may w... 阅读全帖 |
|
x*******6 发帖数: 262 | 49 请问和threadpool之类的工具有什么区别?总得给个Callable或者Runnable来提交任务
吧 |
|
T***B 发帖数: 137 | 50 在工作中要解决一个scale相关的问题。现有的code简化后大约是这样:
class Predictor {
public Predictor() {
// time consuming stuff.
}
String synchronized predict(String input) {
String result = null;
// step 1
// step 2
// step 3
return result;
}
}
class PredictSvc {
private Predictor predictor = new Predictor();
public List handleRequest() {
List results = new ArrayList();
int count = getCount();
for (int i = 0; i < count; ++i) {
String input = get... 阅读全帖 |
|